pkgsrc/lang/ocaml/PLIST

2385 lines
99 KiB
Text
Raw Normal View History

@comment $NetBSD: PLIST,v 1.51 2019/08/24 10:54:23 jaapb Exp $
2000-08-22 04:54:54 +02:00
bin/ocaml
${PLIST.instrumented_runtime}bin/ocaml-instr-graph
${PLIST.instrumented_runtime}bin/ocaml-instr-report
2000-08-22 04:54:54 +02:00
bin/ocamlc
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamlc.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlc.opt
bin/ocamlcmt
2000-08-22 04:54:54 +02:00
bin/ocamlcp
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamlcp.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlcp.opt
2000-08-22 04:54:54 +02:00
bin/ocamldebug
bin/ocamldep
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamldep.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamldep.opt
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
bin/ocamldoc
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamldoc.opt
2000-08-22 04:54:54 +02:00
bin/ocamllex
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamllex.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamllex.opt
bin/ocamlmklib
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamlmklib.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlmklib.opt
2000-08-22 04:54:54 +02:00
bin/ocamlmktop
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamlmktop.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlmktop.opt
bin/ocamlobjinfo
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
bin/ocamlobjinfo.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlobjinfo.opt
${PLIST.ocaml-opt}bin/ocamlopt
${PLIST.ocaml-opt}bin/ocamlopt.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlopt.opt
bin/ocamloptp
bin/ocamloptp.byte
${PLIST.ocaml-opt}bin/ocamloptp.opt
bin/ocamlprof
bin/ocamlprof.byte
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}bin/ocamlprof.opt
bin/ocamlrun
bin/ocamlrund
${PLIST.instrumented_runtime}bin/ocamlruni
2000-08-22 04:54:54 +02:00
bin/ocamlyacc
lib/ocaml/Makefile.config
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/VERSION
2000-08-22 04:54:54 +02:00
lib/ocaml/arg.ml
lib/ocaml/arg.mli
lib/ocaml/array.ml
lib/ocaml/array.mli
lib/ocaml/arrayLabels.ml
lib/ocaml/arrayLabels.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/bigarray.a
2000-08-22 04:54:54 +02:00
lib/ocaml/bigarray.cma
lib/ocaml/bigarray.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/bigarray.cmti
${PLIST.ocaml-opt}lib/ocaml/bigarray.cmx
${PLIST.ocaml-opt}lib/ocaml/bigarray.cmxa
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/bigarray.cmxs
lib/ocaml/bigarray.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/bigarray.mli
lib/ocaml/bool.ml
lib/ocaml/bool.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/buffer.ml
lib/ocaml/buffer.mli
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/bytes.ml
lib/ocaml/bytes.mli
lib/ocaml/bytesLabels.ml
lib/ocaml/bytesLabels.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/callback.ml
lib/ocaml/callback.mli
Updated lang/ocaml to newest version 4.02.2. Changes apart from bugfixes include: - #6583: add a new class of binary operators with the same syntactic precedence as method calls; these operators start with # followed by a non-empty sequence of operator symbols (for instance #+, #!?). It is also possible to use '#' as part of these extra symbols (for instance ##, or #+#); this is rejected by the type-checker, but can be used e.g. by ppx rewriters. * #6016: add a "nonrec" keyword for type declarations - #6600: make -short-paths faster by building the printing map incrementally - #6642: replace $CAMLORIGIN in -ccopt with the path to cma or cmxa to output an object file with included runtime and autolink libraries - #6845: -no-check-prims to tell ocamlc not to check primitives in runtime - G#149: Attach documentation comments to parse tree - G#159: Better locations for structure/signature items - #5958: generalized polymorphic #install_printer - #6237: explicit "infer" tag to control or disable menhir --infer - #6625: pass -linkpkg to files built with -output-obj. - #6712: Ignore common VCS directories - #6720: pass -g to C compilers when tag 'debug' is set - #6733: add .byte.so and .native.so targets to pass -output-obj -cclib -shared. - #6733: "runtime_variant(X)" to pass -runtime-variant X option. - #6774: new menhir-specific flags "only_tokens" and "external_tokens(Foo)" - #6285: Add support for nanosecond precision in Unix.stat() - #6781: Add higher baud rates to Unix termios - #6834: Add Obj.{first,last}_non_constant_constructor_tag - #6078: Release the runtime system when calling caml_dlopen - #6675: GC hooks - #5418 (comments) : generate dependencies with $(CC) instead of gcc - #6266: Cross compilation for iOs, Android etc - Update instructions for x86-64 PIC mode and POWER architecture builds - #6452, G#140: add internal suport for custom printing formats - #6641: add -g, -ocamlcflags, -ocamloptflags options to ocamlmklib - #6693: also build libasmrun_shared.so and lib{asm,caml}run_pic.a - #6842: export Typemod.modtype_of_package - G#139: more versatile specification of locations of .annot - G#157: store the path of cmos inside debug section at link time - G#191: Making gc.h and some part of memory.h public
2015-06-30 13:08:47 +02:00
lib/ocaml/caml/address_class.h
lib/ocaml/caml/alloc.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/backtrace.h
lib/ocaml/caml/backtrace_prim.h
lib/ocaml/caml/bigarray.h
lib/ocaml/caml/callback.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/compact.h
lib/ocaml/caml/compare.h
lib/ocaml/caml/compatibility.h
Changes 3.08.3: New features: - support for ocamlopt -pack under Mac OS X (PR#2634, PR#3320) - ignore unknown warning options for forward and backward compatibility - runtime: export caml_compare_unordered (PR#3479) - camlp4: install argl.* files (PR#3439) - ocamldoc: add -man-section option - labltk: add the "solid" relief option (PR#3343) - compiler: ocamlc -i now prints variance annotations Bug fixes: - typing: fix unsoundness in type declaration variance inference. Type parameters which are constrained must now have an explicit variant annotation, otherwise they are invariant. This is not backward compatible, so this might break code which either uses subtyping or uses the relaxed value restriction (i.e. was not typable before 3.07) - typing: erroneous partial match warning for polymorphic variants (PR#3424) - runtime: handle the case of an empty command line (PR#3409, PR#3444) - stdlib: make Sys.executable_name an absolute path in native code (PR#3303) - runtime: fix memory leak in finalise.c - runtime: auto-trigger compaction even if gc is called manually (PR#3392) - stdlib: fix segfault in Obj.dup on zero-sized values (PR#3406) - camlp4: correct parsing of the $ identifier (PR#3310, PR#3469) - windows (MS tools): use link /lib instead of lib (PR#3333) - windows (MS tools): change default install destination - autoconf: better checking of SSE2 instructions (PR#3329, PR#3330) - graphics: make close_graph close the X display as well as the window (PR#3312) - num: fix big_int_of_string (empty string) (PR#3483) - num: fix big bug on 64-bit architecture (PR#3299) - str: better documentation of string_match and string_partial_match (PR#3395) - unix: fix file descriptor leak in Unix.accept (PR#3423) - unix: miscellaneous clean-ups - unix: fix documentation of Unix.tm (PR#3341) - graphics: fix problem when allocating lots of images under Windows (PR#3433) - compiler: fix error message with -pack when .cmi is missing (PR#3028) - cygwin: fix problem with compilation of camlheader (PR#3485) - stdlib: Filename.basename doesn't return an empty string any more (PR#3451) - stdlib: better documentation of Open_excl flag (PR#3450) - ocamlcp: accept -thread option (PR#3511) - ocamldep: handle spaces in file names (PR#3370) - compiler: remove spurious warning in pattern-matching on variants (PR#3424) - windows: better handling of InterpreterPath registry entry (PR#3334, PR#3432)
2005-03-24 12:32:50 +01:00
lib/ocaml/caml/config.h
lib/ocaml/caml/custom.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/debugger.h
lib/ocaml/caml/dynlink.h
lib/ocaml/caml/exec.h
lib/ocaml/caml/fail.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/finalise.h
lib/ocaml/caml/fix_code.h
lib/ocaml/caml/freelist.h
Updated lang/ocaml to newest version 4.02.2. Changes apart from bugfixes include: - #6583: add a new class of binary operators with the same syntactic precedence as method calls; these operators start with # followed by a non-empty sequence of operator symbols (for instance #+, #!?). It is also possible to use '#' as part of these extra symbols (for instance ##, or #+#); this is rejected by the type-checker, but can be used e.g. by ppx rewriters. * #6016: add a "nonrec" keyword for type declarations - #6600: make -short-paths faster by building the printing map incrementally - #6642: replace $CAMLORIGIN in -ccopt with the path to cma or cmxa to output an object file with included runtime and autolink libraries - #6845: -no-check-prims to tell ocamlc not to check primitives in runtime - G#149: Attach documentation comments to parse tree - G#159: Better locations for structure/signature items - #5958: generalized polymorphic #install_printer - #6237: explicit "infer" tag to control or disable menhir --infer - #6625: pass -linkpkg to files built with -output-obj. - #6712: Ignore common VCS directories - #6720: pass -g to C compilers when tag 'debug' is set - #6733: add .byte.so and .native.so targets to pass -output-obj -cclib -shared. - #6733: "runtime_variant(X)" to pass -runtime-variant X option. - #6774: new menhir-specific flags "only_tokens" and "external_tokens(Foo)" - #6285: Add support for nanosecond precision in Unix.stat() - #6781: Add higher baud rates to Unix termios - #6834: Add Obj.{first,last}_non_constant_constructor_tag - #6078: Release the runtime system when calling caml_dlopen - #6675: GC hooks - #5418 (comments) : generate dependencies with $(CC) instead of gcc - #6266: Cross compilation for iOs, Android etc - Update instructions for x86-64 PIC mode and POWER architecture builds - #6452, G#140: add internal suport for custom printing formats - #6641: add -g, -ocamlcflags, -ocamloptflags options to ocamlmklib - #6693: also build libasmrun_shared.so and lib{asm,caml}run_pic.a - #6842: export Typemod.modtype_of_package - G#139: more versatile specification of locations of .annot - G#157: store the path of cmos inside debug section at link time - G#191: Making gc.h and some part of memory.h public
2015-06-30 13:08:47 +02:00
lib/ocaml/caml/gc.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/gc_ctrl.h
lib/ocaml/caml/globroots.h
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/caml/hash.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/hooks.h
lib/ocaml/caml/instrtrace.h
lib/ocaml/caml/instruct.h
lib/ocaml/caml/int64_emul.h
lib/ocaml/caml/int64_format.h
lib/ocaml/caml/int64_native.h
lib/ocaml/caml/interp.h
lib/ocaml/caml/intext.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/io.h
lib/ocaml/caml/jumptbl.h
lib/ocaml/caml/m.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/major_gc.h
lib/ocaml/caml/md5.h
lib/ocaml/caml/memory.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/minor_gc.h
2000-08-22 04:54:54 +02:00
lib/ocaml/caml/misc.h
lib/ocaml/caml/mlvalues.h
lib/ocaml/caml/opnames.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/osdeps.h
lib/ocaml/caml/prims.h
lib/ocaml/caml/printexc.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/reverse.h
lib/ocaml/caml/roots.h
lib/ocaml/caml/s.h
lib/ocaml/caml/signals.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/signals_machdep.h
lib/ocaml/caml/socketaddr.h
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/caml/spacetime.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/stack.h
lib/ocaml/caml/stacks.h
lib/ocaml/caml/startup.h
lib/ocaml/caml/startup_aux.h
lib/ocaml/caml/sys.h
lib/ocaml/caml/threads.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/ui.h
lib/ocaml/caml/unixsupport.h
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/caml/version.h
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/caml/weak.h
lib/ocaml/camlheader
lib/ocaml/camlheader_ur
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/camlinternalFormat.cmi
lib/ocaml/camlinternalFormat.cmt
lib/ocaml/camlinternalFormat.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/camlinternalFormat.cmx
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/camlinternalFormat.ml
lib/ocaml/camlinternalFormat.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}lib/ocaml/camlinternalFormat.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/camlinternalFormat.p.cmx
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/camlinternalFormatBasics.cmi
lib/ocaml/camlinternalFormatBasics.cmt
lib/ocaml/camlinternalFormatBasics.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/camlinternalFormatBasics.cmx
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/camlinternalFormatBasics.ml
lib/ocaml/camlinternalFormatBasics.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}lib/ocaml/camlinternalFormatBasics.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/camlinternalFormatBasics.p.cmx
Update lang/ocaml to 3.11.1 [PR pkg/41695] (Changes that can break existing programs are marked with a "*" ) Language features: - Addition of lazy patterns: "lazy <pat>" matches suspensions whose values, after forcing, match the pattern <pat>. - Introduction of private abbreviation types "type t = private <type-expr>", for abstracting the actual manifest type in type abbreviations. - Subtyping is now allowed between a private abbreviation and its definition, and between a polymorphic method and its monomorphic instance. Compilers: - The file name for a compilation unit should correspond to a valid identifier (Otherwise dynamic linking and other things can fail, and a warning is emitted.) * Revised -output-obj: the output name must now be provided; its extension must be one of .o/.obj, .so/.dll, or .c for the bytecode compiler. The compilers can now produce a shared library (with all the needed -ccopts/-ccobjs options) directly. - -dtypes renamed to -annot, records (in .annot files) which function calls are tail calls. - All compiler error messages now include a file name and location, for better interaction with Emacs' compilation mode. - Optimized compilation of "lazy e" when the argument "e" is already evaluated. - Optimized compilation of equality tests with a variant constant constructor. - The -dllib options recorded in libraries are no longer ignored when -use_runtime or -use_prims is used (unless -no_auto_link is explicitly used). - Check that at most one of -pack, -a, -shared, -c, -output-obj is given on the command line. - Optimized compilation of private types as regular manifest types (e.g. abbreviation to float, float array or record types with only float fields). Native-code compiler: - New port: Mac OS X / Intel in 64-bit mode (configure with -cc "gcc -m64"). - A new option "-shared" to produce a plugin that can be dynamically loaded with the native version of Dynlink. - A new option "-nodynlink" to enable optimizations valid only for code that is never dynlinked (no-op except for AMD64). - More aggressive unboxing of floats and boxed integers. - Can select which assembler and asm options to use at configuration time. Run-time system: - New implementation of the page table describing the heap (two-level array in 32 bits, sparse hashtable in 64 bits), fixes issues with address space randomization on 64-bit OS (PR#4448). - New "generational" API for registering global memory roots with the GC, enables faster scanning of global roots. (The functions are caml_*_generational_global_root in <caml/memory.h>.) - New function "caml_raise_with_args" to raise an exception with several arguments from C. - Changes in implementation of dynamic linking of C code: under Win32, use Alain Frisch's flexdll implementation of the dlopen API; under MacOSX, use dlopen API instead of MacOSX bundle API. - Programs may now choose a first-fit allocation policy instead of the default next-fit. First-fit reduces fragmentation but is slightly slower in some cases. Standard library: - Parsing library: new function "set_trace" to programmatically turn on or off the printing of a trace during parsing. - Printexc library: new functions "print_backtrace" and "get_backtrace" to obtain a stack backtrace of the most recently raised exception. New function "record_backtrace" to turn the exception backtrace mechanism on or off from within a program. - Scanf library: fine-tuning of meta format implementation; fscanf behaviour revisited: only one input buffer is allocated for any given input channel; the %n conversion does not count a lookahead character as read. Other libraries: - Dynlink: on some platforms, the Dynlink library is now available in native code. The boolean Dynlink.is_native allows the program to know whether it has been compiled in bytecode or in native code. - Bigarrays: added "unsafe_get" and "unsafe_set" (non-bound-checking versions of "get" and "set"). - Bigarrays: removed limitation "array dimension < 2^31". - Labltk: added support for TK 8.5. - Num: added conversions between big_int and int32, nativeint, int64. More efficient implementation of Num.quo_num and Num.mod_num. - Threads: improved efficiency of mutex and condition variable operations; improved interaction with Unix.fork (PR#4577). - Unix: added getsockopt_error returning type Unix.error. Added support for TCP_NODELAY and IPV6_ONLY socket options. - Win32 Unix: "select" now supports all kinds of file descriptors. Improved emulation of "lockf" (PR#4609). Tools: - ocamldebug now supported under Windows (MSVC and Mingw ports), but without the replay feature. (Contributed by Dmitry Bely and Sylvain Le Gall at OCamlCore with support from Lexifi.) - ocamldoc: new option -no-module-constraint-filter to include functions hidden by signature constraint in documentation. - ocamlmklib and ocamldep.opt now available under Windows ports. - ocamlmklib no longer supports the -implib option. - ocamlnat: an experimental native toplevel (not built by default). Camlp4: * programs linked with camlp4lib.cma now also need dynlink.cma.
2009-09-07 23:48:13 +02:00
lib/ocaml/camlinternalLazy.cmi
lib/ocaml/camlinternalLazy.cmt
lib/ocaml/camlinternalLazy.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/camlinternalLazy.cmx
lib/ocaml/camlinternalLazy.ml
lib/ocaml/camlinternalLazy.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}lib/ocaml/camlinternalLazy.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/camlinternalLazy.p.cmx
lib/ocaml/camlinternalMod.cmi
lib/ocaml/camlinternalMod.cmt
lib/ocaml/camlinternalMod.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/camlinternalMod.cmx
lib/ocaml/camlinternalMod.ml
lib/ocaml/camlinternalMod.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}lib/ocaml/camlinternalMod.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/camlinternalMod.p.cmx
lib/ocaml/camlinternalOO.cmi
lib/ocaml/camlinternalOO.cmt
lib/ocaml/camlinternalOO.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/camlinternalOO.cmx
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/camlinternalOO.ml
lib/ocaml/camlinternalOO.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}lib/ocaml/camlinternalOO.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/camlinternalOO.p.cmx
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/char.ml
lib/ocaml/char.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSE.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSE.cmt
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSE.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSEgen.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSEgen.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSEgen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSEgen.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/CSEgen.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/afl_instrument.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/afl_instrument.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/afl_instrument.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/afl_instrument.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/afl_instrument.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/alias_analysis.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/alias_analysis.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/alias_analysis.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/alias_analysis.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/alias_analysis.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/allocated_const.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/allocated_const.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/allocated_const.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/allocated_const.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/allocated_const.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/annot.cmi
lib/ocaml/compiler-libs/annot.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/annot.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/arch.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/arch.cmt
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/arch.cmx
lib/ocaml/compiler-libs/arg_helper.cmi
lib/ocaml/compiler-libs/arg_helper.cmt
lib/ocaml/compiler-libs/arg_helper.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/arg_helper.cmx
lib/ocaml/compiler-libs/arg_helper.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmgen.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmgen.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmgen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmgen.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmgen.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlibrarian.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlibrarian.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlibrarian.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlibrarian.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlibrarian.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlink.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlink.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlink.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlink.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmlink.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmpackager.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmpackager.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmpackager.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmpackager.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/asmpackager.mli
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/compiler-libs/ast_helper.cmi
lib/ocaml/compiler-libs/ast_helper.cmt
lib/ocaml/compiler-libs/ast_helper.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ast_helper.cmx
lib/ocaml/compiler-libs/ast_helper.mli
lib/ocaml/compiler-libs/ast_invariants.cmi
lib/ocaml/compiler-libs/ast_invariants.cmt
lib/ocaml/compiler-libs/ast_invariants.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ast_invariants.cmx
lib/ocaml/compiler-libs/ast_invariants.mli
lib/ocaml/compiler-libs/ast_iterator.cmi
lib/ocaml/compiler-libs/ast_iterator.cmt
lib/ocaml/compiler-libs/ast_iterator.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ast_iterator.cmx
lib/ocaml/compiler-libs/ast_iterator.mli
Update of lang/ocaml to its newest version, 4.01. Changes, apart from bugfixes, include: - Labltk: updated to Tcl/Tk 8.6. Type system: - use well-disciplined type information propagation to disambiguate label and constructor names * Propagate type information towards pattern-matching, even in the presence of polymorphic variants (discarding only information about possibly-present constructors). As a result, matching against absent constructors is no longer allowed for exact and fixed polymorphic variant types. * Reject multiple declarations of the same method or instance variable in an object - raise an error when multiple private keywords are used in type declarations - parsetree rewriter (-ppx flag) - ocamldep now supports -absname - On "unbound identifier" errors, use spell-checking to suggest names present in the environment - ocamlc has a new option -dsource to visualize the parsetree - tools/eqparsetree compares two parsetree ignoring location - ocamlopt now uses clang as assembler on OS X if available, which enables CFI support for OS X. - Added a new -short-paths option, which attempts to use the shortest representation for type constructors inside types, taking open modules into account. This can make types much more readable if your code uses lots of functors. - added flag -compat-32 to ocamlc, ensuring that the generated bytecode executable can be loaded on 32-bit hosts. - warning on open statements which shadow an existing identifier (if it is actually used in the scope of the open); new open! syntax to silence it locally * warning 3 is extended to warn about other deprecated features: - ISO-latin1 characters in identifiers - uses of the (&) and (or) operators instead of (&&) and (||) - Experimental OCAMLPARAM for ocamlc and ocamlopt - incorrect ordinal number in error message - add signature to Tstr_include - expose a way to inspect the current call stack, Printexc.get_callstack - new flag Marshal.Compat_32 for the serialization functions (Marshal.to_*), forcing the output to be readable on 32-bit hosts. - infix application operators |> and @@ in Pervasives - add O_CLOEXEC flag to Unix.openfile, so that the returned file descriptor is created in close-on-exec mode * more efficient implementation of caml_modify() and caml_initialize(). The new implementations are less lenient than the old ones: now, the destination pointer of caml_modify() must point within the minor or major heaps, and the destination pointer of caml_initialize() must point within the major heap. - Moved debugger/envaux.ml to typing/envaux.ml to publish env_of_only_summary as part of compilerlibs, to be used on bin-annot files. - The test suite can now be run without installing OCaml first.
2013-11-01 11:47:50 +01:00
lib/ocaml/compiler-libs/ast_mapper.cmi
lib/ocaml/compiler-libs/ast_mapper.cmt
lib/ocaml/compiler-libs/ast_mapper.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ast_mapper.cmx
lib/ocaml/compiler-libs/ast_mapper.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/asttypes.cmi
lib/ocaml/compiler-libs/asttypes.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/asttypes.mli
lib/ocaml/compiler-libs/attr_helper.cmi
lib/ocaml/compiler-libs/attr_helper.cmt
lib/ocaml/compiler-libs/attr_helper.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/attr_helper.cmx
lib/ocaml/compiler-libs/attr_helper.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/augment_specialised_args.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/augment_specialised_args.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/augment_specialised_args.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/augment_specialised_args.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/augment_specialised_args.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_intf.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_intf.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_intf.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_var.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_var.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_var.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_var.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/backend_var.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation_intf.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation_intf.cmt
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/branch_relaxation_intf.cmx
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/btype.cmi
lib/ocaml/compiler-libs/btype.cmt
lib/ocaml/compiler-libs/btype.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/btype.cmx
lib/ocaml/compiler-libs/btype.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/build_export_info.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/build_export_info.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/build_export_info.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/build_export_info.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/build_export_info.mli
lib/ocaml/compiler-libs/build_path_prefix_map.cmi
lib/ocaml/compiler-libs/build_path_prefix_map.cmt
lib/ocaml/compiler-libs/build_path_prefix_map.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/build_path_prefix_map.cmx
lib/ocaml/compiler-libs/build_path_prefix_map.mli
lib/ocaml/compiler-libs/builtin_attributes.cmi
lib/ocaml/compiler-libs/builtin_attributes.cmt
lib/ocaml/compiler-libs/builtin_attributes.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/builtin_attributes.cmx
lib/ocaml/compiler-libs/builtin_attributes.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/bytegen.cmi
lib/ocaml/compiler-libs/bytegen.cmt
lib/ocaml/compiler-libs/bytegen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/bytegen.cmx
lib/ocaml/compiler-libs/bytegen.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/bytelibrarian.cmi
lib/ocaml/compiler-libs/bytelibrarian.cmt
lib/ocaml/compiler-libs/bytelibrarian.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/bytelibrarian.cmx
lib/ocaml/compiler-libs/bytelibrarian.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/bytelink.cmi
lib/ocaml/compiler-libs/bytelink.cmt
lib/ocaml/compiler-libs/bytelink.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/bytelink.cmx
lib/ocaml/compiler-libs/bytelink.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/bytepackager.cmi
lib/ocaml/compiler-libs/bytepackager.cmt
lib/ocaml/compiler-libs/bytepackager.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/bytepackager.cmx
lib/ocaml/compiler-libs/bytepackager.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/bytesections.cmi
lib/ocaml/compiler-libs/bytesections.cmt
lib/ocaml/compiler-libs/bytesections.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/bytesections.cmx
lib/ocaml/compiler-libs/bytesections.mli
lib/ocaml/compiler-libs/camlinternalMenhirLib.cmi
lib/ocaml/compiler-libs/camlinternalMenhirLib.cmt
lib/ocaml/compiler-libs/camlinternalMenhirLib.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/camlinternalMenhirLib.cmx
lib/ocaml/compiler-libs/camlinternalMenhirLib.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/ccomp.cmi
lib/ocaml/compiler-libs/ccomp.cmt
lib/ocaml/compiler-libs/ccomp.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ccomp.cmx
lib/ocaml/compiler-libs/ccomp.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/clambda.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/clambda.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/clambda.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/clambda.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/clambda.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/clflags.cmi
lib/ocaml/compiler-libs/clflags.cmt
lib/ocaml/compiler-libs/clflags.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/clflags.cmx
lib/ocaml/compiler-libs/clflags.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion_aux.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion_aux.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion_aux.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion_aux.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_conversion_aux.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_element.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_element.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_element.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_element.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_element.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_id.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_id.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_id.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_id.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_id.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_offsets.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_offsets.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_offsets.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_offsets.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_offsets.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_origin.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_origin.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_origin.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_origin.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/closure_origin.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/cmi_format.cmi
lib/ocaml/compiler-libs/cmi_format.cmt
lib/ocaml/compiler-libs/cmi_format.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmi_format.cmx
lib/ocaml/compiler-libs/cmi_format.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmm.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmm.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmm.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmm.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmm.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmmgen.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmmgen.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmmgen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmmgen.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmmgen.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/cmo_format.cmi
lib/ocaml/compiler-libs/cmo_format.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/cmo_format.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/cmt_format.cmi
lib/ocaml/compiler-libs/cmt_format.cmt
lib/ocaml/compiler-libs/cmt_format.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmt_format.cmx
lib/ocaml/compiler-libs/cmt_format.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmx_format.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmx_format.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/cmx_format.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/coloring.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/coloring.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/coloring.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/coloring.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/coloring.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/comballoc.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/comballoc.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/comballoc.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/comballoc.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/comballoc.mli
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/compiler-libs/compdynlink.cmi
lib/ocaml/compiler-libs/compdynlink.cmt
lib/ocaml/compiler-libs/compdynlink.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compdynlink.cmx
lib/ocaml/compiler-libs/compdynlink.mli
lib/ocaml/compiler-libs/compdynlink_common.cmi
lib/ocaml/compiler-libs/compdynlink_common.cmt
lib/ocaml/compiler-libs/compdynlink_common.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compdynlink_common.cmx
lib/ocaml/compiler-libs/compdynlink_common.mli
lib/ocaml/compiler-libs/compdynlink_platform_intf.cmi
lib/ocaml/compiler-libs/compdynlink_platform_intf.cmt
lib/ocaml/compiler-libs/compdynlink_platform_intf.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compdynlink_platform_intf.cmx
lib/ocaml/compiler-libs/compdynlink_platform_intf.mli
lib/ocaml/compiler-libs/compdynlink_types.cmi
lib/ocaml/compiler-libs/compdynlink_types.cmt
lib/ocaml/compiler-libs/compdynlink_types.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compdynlink_types.cmx
lib/ocaml/compiler-libs/compdynlink_types.mli
Update of lang/ocaml to its newest version, 4.01. Changes, apart from bugfixes, include: - Labltk: updated to Tcl/Tk 8.6. Type system: - use well-disciplined type information propagation to disambiguate label and constructor names * Propagate type information towards pattern-matching, even in the presence of polymorphic variants (discarding only information about possibly-present constructors). As a result, matching against absent constructors is no longer allowed for exact and fixed polymorphic variant types. * Reject multiple declarations of the same method or instance variable in an object - raise an error when multiple private keywords are used in type declarations - parsetree rewriter (-ppx flag) - ocamldep now supports -absname - On "unbound identifier" errors, use spell-checking to suggest names present in the environment - ocamlc has a new option -dsource to visualize the parsetree - tools/eqparsetree compares two parsetree ignoring location - ocamlopt now uses clang as assembler on OS X if available, which enables CFI support for OS X. - Added a new -short-paths option, which attempts to use the shortest representation for type constructors inside types, taking open modules into account. This can make types much more readable if your code uses lots of functors. - added flag -compat-32 to ocamlc, ensuring that the generated bytecode executable can be loaded on 32-bit hosts. - warning on open statements which shadow an existing identifier (if it is actually used in the scope of the open); new open! syntax to silence it locally * warning 3 is extended to warn about other deprecated features: - ISO-latin1 characters in identifiers - uses of the (&) and (or) operators instead of (&&) and (||) - Experimental OCAMLPARAM for ocamlc and ocamlopt - incorrect ordinal number in error message - add signature to Tstr_include - expose a way to inspect the current call stack, Printexc.get_callstack - new flag Marshal.Compat_32 for the serialization functions (Marshal.to_*), forcing the output to be readable on 32-bit hosts. - infix application operators |> and @@ in Pervasives - add O_CLOEXEC flag to Unix.openfile, so that the returned file descriptor is created in close-on-exec mode * more efficient implementation of caml_modify() and caml_initialize(). The new implementations are less lenient than the old ones: now, the destination pointer of caml_modify() must point within the minor or major heaps, and the destination pointer of caml_initialize() must point within the major heap. - Moved debugger/envaux.ml to typing/envaux.ml to publish env_of_only_summary as part of compilerlibs, to be used on bin-annot files. - The test suite can now be run without installing OCaml first.
2013-11-01 11:47:50 +01:00
lib/ocaml/compiler-libs/compenv.cmi
lib/ocaml/compiler-libs/compenv.cmt
lib/ocaml/compiler-libs/compenv.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compenv.cmx
lib/ocaml/compiler-libs/compenv.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilation_unit.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilation_unit.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilation_unit.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilation_unit.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilation_unit.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/compile.cmi
lib/ocaml/compiler-libs/compile.cmt
lib/ocaml/compiler-libs/compile.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compile.cmx
lib/ocaml/compiler-libs/compile.mli
lib/ocaml/compiler-libs/compile_common.cmi
lib/ocaml/compiler-libs/compile_common.cmt
lib/ocaml/compiler-libs/compile_common.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compile_common.cmx
lib/ocaml/compiler-libs/compile_common.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilenv.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilenv.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilenv.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilenv.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compilenv.mli
Update of lang/ocaml to its newest version, 4.01. Changes, apart from bugfixes, include: - Labltk: updated to Tcl/Tk 8.6. Type system: - use well-disciplined type information propagation to disambiguate label and constructor names * Propagate type information towards pattern-matching, even in the presence of polymorphic variants (discarding only information about possibly-present constructors). As a result, matching against absent constructors is no longer allowed for exact and fixed polymorphic variant types. * Reject multiple declarations of the same method or instance variable in an object - raise an error when multiple private keywords are used in type declarations - parsetree rewriter (-ppx flag) - ocamldep now supports -absname - On "unbound identifier" errors, use spell-checking to suggest names present in the environment - ocamlc has a new option -dsource to visualize the parsetree - tools/eqparsetree compares two parsetree ignoring location - ocamlopt now uses clang as assembler on OS X if available, which enables CFI support for OS X. - Added a new -short-paths option, which attempts to use the shortest representation for type constructors inside types, taking open modules into account. This can make types much more readable if your code uses lots of functors. - added flag -compat-32 to ocamlc, ensuring that the generated bytecode executable can be loaded on 32-bit hosts. - warning on open statements which shadow an existing identifier (if it is actually used in the scope of the open); new open! syntax to silence it locally * warning 3 is extended to warn about other deprecated features: - ISO-latin1 characters in identifiers - uses of the (&) and (or) operators instead of (&&) and (||) - Experimental OCAMLPARAM for ocamlc and ocamlopt - incorrect ordinal number in error message - add signature to Tstr_include - expose a way to inspect the current call stack, Printexc.get_callstack - new flag Marshal.Compat_32 for the serialization functions (Marshal.to_*), forcing the output to be readable on 32-bit hosts. - infix application operators |> and @@ in Pervasives - add O_CLOEXEC flag to Unix.openfile, so that the returned file descriptor is created in close-on-exec mode * more efficient implementation of caml_modify() and caml_initialize(). The new implementations are less lenient than the old ones: now, the destination pointer of caml_modify() must point within the minor or major heaps, and the destination pointer of caml_initialize() must point within the major heap. - Moved debugger/envaux.ml to typing/envaux.ml to publish env_of_only_summary as part of compilerlibs, to be used on bin-annot files. - The test suite can now be run without installing OCaml first.
2013-11-01 11:47:50 +01:00
lib/ocaml/compiler-libs/compmisc.cmi
lib/ocaml/compiler-libs/compmisc.cmt
lib/ocaml/compiler-libs/compmisc.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compmisc.cmx
lib/ocaml/compiler-libs/compmisc.mli
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/compiler-libs/compplugin.cmi
lib/ocaml/compiler-libs/compplugin.cmt
lib/ocaml/compiler-libs/compplugin.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/compplugin.cmx
lib/ocaml/compiler-libs/compplugin.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/config.cmi
lib/ocaml/compiler-libs/config.cmt
lib/ocaml/compiler-libs/config.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/config.cmx
lib/ocaml/compiler-libs/config.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/consistbl.cmi
lib/ocaml/compiler-libs/consistbl.cmt
lib/ocaml/compiler-libs/consistbl.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/consistbl.cmx
lib/ocaml/compiler-libs/consistbl.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/ctype.cmi
lib/ocaml/compiler-libs/ctype.cmt
lib/ocaml/compiler-libs/ctype.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ctype.cmx
lib/ocaml/compiler-libs/ctype.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/datarepr.cmi
lib/ocaml/compiler-libs/datarepr.cmt
lib/ocaml/compiler-libs/datarepr.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/datarepr.cmx
lib/ocaml/compiler-libs/datarepr.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/deadcode.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/deadcode.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/deadcode.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/deadcode.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/deadcode.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/debuginfo.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/debuginfo.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/debuginfo.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/debuginfo.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/debuginfo.mli
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/compiler-libs/depend.cmi
lib/ocaml/compiler-libs/depend.cmt
lib/ocaml/compiler-libs/depend.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/depend.cmx
lib/ocaml/compiler-libs/depend.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/dll.cmi
lib/ocaml/compiler-libs/dll.cmt
lib/ocaml/compiler-libs/dll.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/dll.cmx
lib/ocaml/compiler-libs/dll.mli
Updated lang/ocaml to newest version 4.02.2. Changes apart from bugfixes include: - #6583: add a new class of binary operators with the same syntactic precedence as method calls; these operators start with # followed by a non-empty sequence of operator symbols (for instance #+, #!?). It is also possible to use '#' as part of these extra symbols (for instance ##, or #+#); this is rejected by the type-checker, but can be used e.g. by ppx rewriters. * #6016: add a "nonrec" keyword for type declarations - #6600: make -short-paths faster by building the printing map incrementally - #6642: replace $CAMLORIGIN in -ccopt with the path to cma or cmxa to output an object file with included runtime and autolink libraries - #6845: -no-check-prims to tell ocamlc not to check primitives in runtime - G#149: Attach documentation comments to parse tree - G#159: Better locations for structure/signature items - #5958: generalized polymorphic #install_printer - #6237: explicit "infer" tag to control or disable menhir --infer - #6625: pass -linkpkg to files built with -output-obj. - #6712: Ignore common VCS directories - #6720: pass -g to C compilers when tag 'debug' is set - #6733: add .byte.so and .native.so targets to pass -output-obj -cclib -shared. - #6733: "runtime_variant(X)" to pass -runtime-variant X option. - #6774: new menhir-specific flags "only_tokens" and "external_tokens(Foo)" - #6285: Add support for nanosecond precision in Unix.stat() - #6781: Add higher baud rates to Unix termios - #6834: Add Obj.{first,last}_non_constant_constructor_tag - #6078: Release the runtime system when calling caml_dlopen - #6675: GC hooks - #5418 (comments) : generate dependencies with $(CC) instead of gcc - #6266: Cross compilation for iOs, Android etc - Update instructions for x86-64 PIC mode and POWER architecture builds - #6452, G#140: add internal suport for custom printing formats - #6641: add -g, -ocamlcflags, -ocamloptflags options to ocamlmklib - #6693: also build libasmrun_shared.so and lib{asm,caml}run_pic.a - #6842: export Typemod.modtype_of_package - G#139: more versatile specification of locations of .annot - G#157: store the path of cmos inside debug section at link time - G#191: Making gc.h and some part of memory.h public
2015-06-30 13:08:47 +02:00
lib/ocaml/compiler-libs/docstrings.cmi
lib/ocaml/compiler-libs/docstrings.cmt
lib/ocaml/compiler-libs/docstrings.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/docstrings.cmx
lib/ocaml/compiler-libs/docstrings.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/effect_analysis.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/effect_analysis.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/effect_analysis.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/effect_analysis.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/effect_analysis.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emit.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emit.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emit.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emit.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emit.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emitaux.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emitaux.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emitaux.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emitaux.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emitaux.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/emitcode.cmi
lib/ocaml/compiler-libs/emitcode.cmt
lib/ocaml/compiler-libs/emitcode.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/emitcode.cmx
lib/ocaml/compiler-libs/emitcode.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/env.cmi
lib/ocaml/compiler-libs/env.cmt
lib/ocaml/compiler-libs/env.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/env.cmx
lib/ocaml/compiler-libs/env.mli
lib/ocaml/compiler-libs/envaux.cmi
lib/ocaml/compiler-libs/envaux.cmt
lib/ocaml/compiler-libs/envaux.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/envaux.cmx
lib/ocaml/compiler-libs/envaux.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/errors.cmi
lib/ocaml/compiler-libs/errors.cmt
lib/ocaml/compiler-libs/errors.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/errors.cmx
lib/ocaml/compiler-libs/errors.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_id.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_id.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_id.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_id.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_id.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info_for_pack.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info_for_pack.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info_for_pack.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info_for_pack.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/export_info_for_pack.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/expunge.cmi
lib/ocaml/compiler-libs/expunge.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/extract_projections.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/extract_projections.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/extract_projections.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/extract_projections.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/extract_projections.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/find_recursive_functions.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/find_recursive_functions.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/find_recursive_functions.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/find_recursive_functions.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/find_recursive_functions.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_invariants.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_invariants.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_invariants.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_invariants.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_invariants.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_iterators.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_iterators.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_iterators.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_iterators.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_iterators.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_to_clambda.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_to_clambda.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_to_clambda.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_to_clambda.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_to_clambda.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_utils.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_utils.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_utils.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_utils.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/flambda_utils.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/freshening.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/freshening.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/freshening.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/freshening.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/freshening.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/genprintval.cmi
lib/ocaml/compiler-libs/genprintval.cmt
lib/ocaml/compiler-libs/genprintval.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/genprintval.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/id_types.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/id_types.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/id_types.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/id_types.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/id_types.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/ident.cmi
lib/ocaml/compiler-libs/ident.cmt
lib/ocaml/compiler-libs/ident.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ident.cmx
lib/ocaml/compiler-libs/ident.mli
lib/ocaml/compiler-libs/identifiable.cmi
lib/ocaml/compiler-libs/identifiable.cmt
lib/ocaml/compiler-libs/identifiable.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/identifiable.cmx
lib/ocaml/compiler-libs/identifiable.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/import_approx.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/import_approx.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/import_approx.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/import_approx.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/import_approx.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/includeclass.cmi
lib/ocaml/compiler-libs/includeclass.cmt
lib/ocaml/compiler-libs/includeclass.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/includeclass.cmx
lib/ocaml/compiler-libs/includeclass.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/includecore.cmi
lib/ocaml/compiler-libs/includecore.cmt
lib/ocaml/compiler-libs/includecore.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/includecore.cmx
lib/ocaml/compiler-libs/includecore.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/includemod.cmi
lib/ocaml/compiler-libs/includemod.cmt
lib/ocaml/compiler-libs/includemod.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/includemod.cmx
lib/ocaml/compiler-libs/includemod.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inconstant_idents.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inconstant_idents.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inconstant_idents.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inconstant_idents.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inconstant_idents.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/initialize_symbol_to_let_symbol.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/initialize_symbol_to_let_symbol.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/initialize_symbol_to_let_symbol.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/initialize_symbol_to_let_symbol.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/initialize_symbol_to_let_symbol.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify_aux.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify_aux.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify_aux.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify_aux.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inline_and_simplify_aux.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_cost.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_cost.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_cost.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_cost.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_cost.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision_intf.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision_intf.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_decision_intf.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats_types.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats_types.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats_types.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats_types.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_stats_types.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_transforms.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_transforms.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_transforms.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_transforms.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/inlining_transforms.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/instruct.cmi
lib/ocaml/compiler-libs/instruct.cmt
lib/ocaml/compiler-libs/instruct.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/instruct.cmx
lib/ocaml/compiler-libs/instruct.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/int_replace_polymorphic_compare.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/int_replace_polymorphic_compare.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/int_replace_polymorphic_compare.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/int_replace_polymorphic_compare.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/int_replace_polymorphic_compare.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interf.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interf.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interf.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interf.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interf.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/internal_variable_names.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/internal_variable_names.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/internal_variable_names.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/internal_variable_names.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/internal_variable_names.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interval.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interval.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interval.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interval.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/interval.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/invariant_params.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/invariant_params.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/invariant_params.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/invariant_params.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/invariant_params.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/lambda.cmi
lib/ocaml/compiler-libs/lambda.cmt
lib/ocaml/compiler-libs/lambda.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lambda.cmx
lib/ocaml/compiler-libs/lambda.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/lexer.cmi
lib/ocaml/compiler-libs/lexer.cmt
lib/ocaml/compiler-libs/lexer.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lexer.cmx
lib/ocaml/compiler-libs/lexer.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_code.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_code.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_code.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_code.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_code.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_constants.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_constants.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_constants.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_constants.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_constants.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/lift_let_to_initialize_symbol.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linearize.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linearize.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linearize.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linearize.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linearize.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linkage_name.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linkage_name.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linkage_name.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linkage_name.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linkage_name.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linscan.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linscan.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linscan.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linscan.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/linscan.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/liveness.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/liveness.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/liveness.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/liveness.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/liveness.mli
lib/ocaml/compiler-libs/load_path.cmi
lib/ocaml/compiler-libs/load_path.cmt
lib/ocaml/compiler-libs/load_path.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/load_path.cmx
lib/ocaml/compiler-libs/load_path.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/location.cmi
lib/ocaml/compiler-libs/location.cmt
lib/ocaml/compiler-libs/location.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/location.cmx
lib/ocaml/compiler-libs/location.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/longident.cmi
lib/ocaml/compiler-libs/longident.cmt
lib/ocaml/compiler-libs/longident.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/longident.cmx
lib/ocaml/compiler-libs/longident.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mach.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mach.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mach.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mach.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mach.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/main.cmi
lib/ocaml/compiler-libs/main.cmo
lib/ocaml/compiler-libs/main.cmt
lib/ocaml/compiler-libs/main.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/main.cmx
lib/ocaml/compiler-libs/main.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/main.o
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/main_args.cmi
lib/ocaml/compiler-libs/main_args.cmt
lib/ocaml/compiler-libs/main_args.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/main_args.cmx
lib/ocaml/compiler-libs/main_args.mli
lib/ocaml/compiler-libs/makedepend.cmi
lib/ocaml/compiler-libs/makedepend.cmt
lib/ocaml/compiler-libs/makedepend.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/makedepend.cmx
lib/ocaml/compiler-libs/makedepend.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/matching.cmi
lib/ocaml/compiler-libs/matching.cmt
lib/ocaml/compiler-libs/matching.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/matching.cmx
lib/ocaml/compiler-libs/matching.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/meta.cmi
lib/ocaml/compiler-libs/meta.cmt
lib/ocaml/compiler-libs/meta.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/meta.cmx
lib/ocaml/compiler-libs/meta.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/middle_end.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/middle_end.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/middle_end.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/middle_end.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/middle_end.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/misc.cmi
lib/ocaml/compiler-libs/misc.cmt
lib/ocaml/compiler-libs/misc.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/misc.cmx
lib/ocaml/compiler-libs/misc.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/mtype.cmi
lib/ocaml/compiler-libs/mtype.cmt
lib/ocaml/compiler-libs/mtype.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mtype.cmx
lib/ocaml/compiler-libs/mtype.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mutable_variable.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mutable_variable.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mutable_variable.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mutable_variable.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/mutable_variable.mli
lib/ocaml/compiler-libs/numbers.cmi
lib/ocaml/compiler-libs/numbers.cmt
lib/ocaml/compiler-libs/numbers.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/numbers.cmx
lib/ocaml/compiler-libs/numbers.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamlbytecomp.a
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/ocamlbytecomp.cma
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamlbytecomp.cmxa
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamlcommon.a
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/ocamlcommon.cma
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamlcommon.cmxa
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamloptcomp.a
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamloptcomp.cma
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ocamloptcomp.cmxa
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/ocamltoplevel.cma
lib/ocaml/compiler-libs/opcodes.cmi
lib/ocaml/compiler-libs/opcodes.cmt
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/opcodes.cmx
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/oprint.cmi
lib/ocaml/compiler-libs/oprint.cmt
lib/ocaml/compiler-libs/oprint.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/oprint.cmx
lib/ocaml/compiler-libs/oprint.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optcompile.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optcompile.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optcompile.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optcompile.cmx
lib/ocaml/compiler-libs/optcompile.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/opterrors.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/opterrors.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/opterrors.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/opterrors.cmx
lib/ocaml/compiler-libs/opterrors.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optmain.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optmain.cmo
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optmain.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optmain.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optmain.cmx
lib/ocaml/compiler-libs/optmain.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/optmain.o
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/opttopdirs.mli
lib/ocaml/compiler-libs/opttoploop.mli
lib/ocaml/compiler-libs/opttopmain.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/outcometree.cmi
lib/ocaml/compiler-libs/outcometree.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/outcometree.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parameter.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parameter.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parameter.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parameter.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parameter.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/parmatch.cmi
lib/ocaml/compiler-libs/parmatch.cmt
lib/ocaml/compiler-libs/parmatch.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parmatch.cmx
lib/ocaml/compiler-libs/parmatch.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/parse.cmi
lib/ocaml/compiler-libs/parse.cmt
lib/ocaml/compiler-libs/parse.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parse.cmx
lib/ocaml/compiler-libs/parse.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/parser.cmi
lib/ocaml/compiler-libs/parser.cmt
lib/ocaml/compiler-libs/parser.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/parser.cmx
lib/ocaml/compiler-libs/parser.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/parsetree.cmi
lib/ocaml/compiler-libs/parsetree.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/parsetree.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pass_wrapper.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pass_wrapper.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pass_wrapper.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pass_wrapper.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pass_wrapper.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/path.cmi
lib/ocaml/compiler-libs/path.cmt
lib/ocaml/compiler-libs/path.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/path.cmx
lib/ocaml/compiler-libs/path.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/pparse.cmi
lib/ocaml/compiler-libs/pparse.cmt
lib/ocaml/compiler-libs/pparse.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pparse.cmx
lib/ocaml/compiler-libs/pparse.mli
lib/ocaml/compiler-libs/pprintast.cmi
lib/ocaml/compiler-libs/pprintast.cmt
lib/ocaml/compiler-libs/pprintast.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/pprintast.cmx
lib/ocaml/compiler-libs/pprintast.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/predef.cmi
lib/ocaml/compiler-libs/predef.cmt
lib/ocaml/compiler-libs/predef.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/predef.cmx
lib/ocaml/compiler-libs/predef.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/primitive.cmi
lib/ocaml/compiler-libs/primitive.cmt
lib/ocaml/compiler-libs/primitive.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/primitive.cmx
lib/ocaml/compiler-libs/primitive.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/printast.cmi
lib/ocaml/compiler-libs/printast.cmt
lib/ocaml/compiler-libs/printast.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printast.cmx
lib/ocaml/compiler-libs/printast.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printclambda.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printclambda.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printclambda.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printclambda.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printclambda.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printcmm.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printcmm.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printcmm.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printcmm.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printcmm.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/printinstr.cmi
lib/ocaml/compiler-libs/printinstr.cmt
lib/ocaml/compiler-libs/printinstr.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printinstr.cmx
lib/ocaml/compiler-libs/printinstr.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/printlambda.cmi
lib/ocaml/compiler-libs/printlambda.cmt
lib/ocaml/compiler-libs/printlambda.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printlambda.cmx
lib/ocaml/compiler-libs/printlambda.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printlinear.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printlinear.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printlinear.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printlinear.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printlinear.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printmach.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printmach.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printmach.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printmach.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printmach.mli
lib/ocaml/compiler-libs/printpat.cmi
lib/ocaml/compiler-libs/printpat.cmt
lib/ocaml/compiler-libs/printpat.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printpat.cmx
lib/ocaml/compiler-libs/printpat.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/printtyp.cmi
lib/ocaml/compiler-libs/printtyp.cmt
lib/ocaml/compiler-libs/printtyp.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printtyp.cmx
lib/ocaml/compiler-libs/printtyp.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/printtyped.cmi
lib/ocaml/compiler-libs/printtyped.cmt
lib/ocaml/compiler-libs/printtyped.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/printtyped.cmx
lib/ocaml/compiler-libs/printtyped.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/proc.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/proc.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/proc.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/proc.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/proc.mli
lib/ocaml/compiler-libs/profile.cmi
lib/ocaml/compiler-libs/profile.cmt
lib/ocaml/compiler-libs/profile.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/profile.cmx
lib/ocaml/compiler-libs/profile.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/projection.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/projection.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/projection.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/projection.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/projection.mli
lib/ocaml/compiler-libs/rec_check.cmi
lib/ocaml/compiler-libs/rec_check.cmt
lib/ocaml/compiler-libs/rec_check.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/rec_check.cmx
lib/ocaml/compiler-libs/rec_check.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ref_to_variables.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ref_to_variables.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ref_to_variables.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ref_to_variables.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/ref_to_variables.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reg.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reg.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reg.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reg.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reg.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reload.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reload.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reload.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reload.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reload.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reloadgen.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reloadgen.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reloadgen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reloadgen.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/reloadgen.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_free_vars_equal_to_args.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_free_vars_equal_to_args.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_free_vars_equal_to_args.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_free_vars_equal_to_args.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_free_vars_equal_to_args.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_arguments.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_arguments.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_arguments.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_arguments.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_arguments.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_closure_vars.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_closure_vars.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_closure_vars.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_closure_vars.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_closure_vars.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_program_constructs.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_program_constructs.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_program_constructs.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_program_constructs.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/remove_unused_program_constructs.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/runtimedef.cmi
lib/ocaml/compiler-libs/runtimedef.cmt
lib/ocaml/compiler-libs/runtimedef.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/runtimedef.cmx
lib/ocaml/compiler-libs/runtimedef.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/schedgen.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/schedgen.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/schedgen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/schedgen.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/schedgen.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/scheduling.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/scheduling.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/scheduling.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/scheduling.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/scheduling.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selectgen.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selectgen.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selectgen.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selectgen.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selectgen.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selection.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selection.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selection.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selection.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/selection.mli
lib/ocaml/compiler-libs/semantics_of_primitives.cmi
lib/ocaml/compiler-libs/semantics_of_primitives.cmt
lib/ocaml/compiler-libs/semantics_of_primitives.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/semantics_of_primitives.cmx
lib/ocaml/compiler-libs/semantics_of_primitives.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_id.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_id.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_id.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_id.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_id.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_origin.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_origin.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_origin.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_origin.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/set_of_closures_origin.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/share_constants.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/share_constants.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/share_constants.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/share_constants.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/share_constants.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simple_value_approx.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simple_value_approx.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simple_value_approx.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simple_value_approx.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simple_value_approx.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/simplif.cmi
lib/ocaml/compiler-libs/simplif.cmt
lib/ocaml/compiler-libs/simplif.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplif.cmx
lib/ocaml/compiler-libs/simplif.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops_intf.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops_intf.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_boxed_integer_ops_intf.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_common.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_common.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_common.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_common.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_common.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_primitives.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_primitives.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_primitives.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_primitives.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/simplify_primitives.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spacetime_profiling.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spacetime_profiling.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spacetime_profiling.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spacetime_profiling.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spacetime_profiling.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spill.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spill.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spill.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spill.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/spill.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/split.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/split.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/split.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/split.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/split.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/static_exception.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/static_exception.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/static_exception.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/static_exception.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/static_exception.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/strmatch.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/strmatch.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/strmatch.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/strmatch.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/strmatch.mli
lib/ocaml/compiler-libs/strongly_connected_components.cmi
lib/ocaml/compiler-libs/strongly_connected_components.cmt
lib/ocaml/compiler-libs/strongly_connected_components.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/strongly_connected_components.cmx
lib/ocaml/compiler-libs/strongly_connected_components.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/stypes.cmi
lib/ocaml/compiler-libs/stypes.cmt
lib/ocaml/compiler-libs/stypes.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/stypes.cmx
lib/ocaml/compiler-libs/stypes.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/subst.cmi
lib/ocaml/compiler-libs/subst.cmt
lib/ocaml/compiler-libs/subst.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/subst.cmx
lib/ocaml/compiler-libs/subst.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/switch.cmi
lib/ocaml/compiler-libs/switch.cmt
lib/ocaml/compiler-libs/switch.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/switch.cmx
lib/ocaml/compiler-libs/switch.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/symbol.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/symbol.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/symbol.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/symbol.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/symbol.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/symtable.cmi
lib/ocaml/compiler-libs/symtable.cmt
lib/ocaml/compiler-libs/symtable.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/symtable.cmx
lib/ocaml/compiler-libs/symtable.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/syntaxerr.cmi
lib/ocaml/compiler-libs/syntaxerr.cmt
lib/ocaml/compiler-libs/syntaxerr.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/syntaxerr.cmx
lib/ocaml/compiler-libs/syntaxerr.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/tag.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/tag.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/tag.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/tag.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/tag.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/targetint.cmi
lib/ocaml/compiler-libs/targetint.cmt
lib/ocaml/compiler-libs/targetint.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/targetint.cmx
lib/ocaml/compiler-libs/targetint.mli
lib/ocaml/compiler-libs/tast_mapper.cmi
lib/ocaml/compiler-libs/tast_mapper.cmt
lib/ocaml/compiler-libs/tast_mapper.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/tast_mapper.cmx
lib/ocaml/compiler-libs/tast_mapper.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/terminfo.cmi
lib/ocaml/compiler-libs/terminfo.cmt
lib/ocaml/compiler-libs/terminfo.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/terminfo.cmx
lib/ocaml/compiler-libs/terminfo.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/topdirs.cmi
lib/ocaml/compiler-libs/topdirs.cmt
lib/ocaml/compiler-libs/topdirs.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/topdirs.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/toploop.cmi
lib/ocaml/compiler-libs/toploop.cmt
lib/ocaml/compiler-libs/toploop.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/toploop.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/topmain.cmi
lib/ocaml/compiler-libs/topmain.cmt
lib/ocaml/compiler-libs/topmain.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/topmain.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/topstart.cmi
lib/ocaml/compiler-libs/topstart.cmo
lib/ocaml/compiler-libs/topstart.cmt
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/trace.cmi
lib/ocaml/compiler-libs/trace.cmt
lib/ocaml/compiler-libs/trace.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/compiler-libs/trace.mli
lib/ocaml/compiler-libs/translattribute.cmi
lib/ocaml/compiler-libs/translattribute.cmt
lib/ocaml/compiler-libs/translattribute.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/translattribute.cmx
lib/ocaml/compiler-libs/translattribute.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/translclass.cmi
lib/ocaml/compiler-libs/translclass.cmt
lib/ocaml/compiler-libs/translclass.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/translclass.cmx
lib/ocaml/compiler-libs/translclass.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/translcore.cmi
lib/ocaml/compiler-libs/translcore.cmt
lib/ocaml/compiler-libs/translcore.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/translcore.cmx
lib/ocaml/compiler-libs/translcore.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/translmod.cmi
lib/ocaml/compiler-libs/translmod.cmt
lib/ocaml/compiler-libs/translmod.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/translmod.cmx
lib/ocaml/compiler-libs/translmod.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/translobj.cmi
lib/ocaml/compiler-libs/translobj.cmt
lib/ocaml/compiler-libs/translobj.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/translobj.cmx
lib/ocaml/compiler-libs/translobj.mli
lib/ocaml/compiler-libs/translprim.cmi
lib/ocaml/compiler-libs/translprim.cmt
lib/ocaml/compiler-libs/translprim.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/translprim.cmx
lib/ocaml/compiler-libs/translprim.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/traverse_for_exported_symbols.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/traverse_for_exported_symbols.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/traverse_for_exported_symbols.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/traverse_for_exported_symbols.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/traverse_for_exported_symbols.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typeclass.cmi
lib/ocaml/compiler-libs/typeclass.cmt
lib/ocaml/compiler-libs/typeclass.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typeclass.cmx
lib/ocaml/compiler-libs/typeclass.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typecore.cmi
lib/ocaml/compiler-libs/typecore.cmt
lib/ocaml/compiler-libs/typecore.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typecore.cmx
lib/ocaml/compiler-libs/typecore.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typedecl.cmi
lib/ocaml/compiler-libs/typedecl.cmt
lib/ocaml/compiler-libs/typedecl.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedecl.cmx
lib/ocaml/compiler-libs/typedecl.mli
lib/ocaml/compiler-libs/typedecl_immediacy.cmi
lib/ocaml/compiler-libs/typedecl_immediacy.cmt
lib/ocaml/compiler-libs/typedecl_immediacy.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedecl_immediacy.cmx
lib/ocaml/compiler-libs/typedecl_immediacy.mli
lib/ocaml/compiler-libs/typedecl_properties.cmi
lib/ocaml/compiler-libs/typedecl_properties.cmt
lib/ocaml/compiler-libs/typedecl_properties.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedecl_properties.cmx
lib/ocaml/compiler-libs/typedecl_properties.mli
lib/ocaml/compiler-libs/typedecl_unboxed.cmi
lib/ocaml/compiler-libs/typedecl_unboxed.cmt
lib/ocaml/compiler-libs/typedecl_unboxed.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedecl_unboxed.cmx
lib/ocaml/compiler-libs/typedecl_unboxed.mli
lib/ocaml/compiler-libs/typedecl_variance.cmi
lib/ocaml/compiler-libs/typedecl_variance.cmt
lib/ocaml/compiler-libs/typedecl_variance.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedecl_variance.cmx
lib/ocaml/compiler-libs/typedecl_variance.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typedtree.cmi
lib/ocaml/compiler-libs/typedtree.cmt
lib/ocaml/compiler-libs/typedtree.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedtree.cmx
lib/ocaml/compiler-libs/typedtree.mli
lib/ocaml/compiler-libs/typedtreeIter.cmi
lib/ocaml/compiler-libs/typedtreeIter.cmt
lib/ocaml/compiler-libs/typedtreeIter.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typedtreeIter.cmx
lib/ocaml/compiler-libs/typedtreeIter.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typemod.cmi
lib/ocaml/compiler-libs/typemod.cmt
lib/ocaml/compiler-libs/typemod.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typemod.cmx
lib/ocaml/compiler-libs/typemod.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typeopt.cmi
lib/ocaml/compiler-libs/typeopt.cmt
lib/ocaml/compiler-libs/typeopt.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typeopt.cmx
lib/ocaml/compiler-libs/typeopt.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/types.cmi
lib/ocaml/compiler-libs/types.cmt
lib/ocaml/compiler-libs/types.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/types.cmx
lib/ocaml/compiler-libs/types.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/typetexp.cmi
lib/ocaml/compiler-libs/typetexp.cmt
lib/ocaml/compiler-libs/typetexp.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/typetexp.cmx
lib/ocaml/compiler-libs/typetexp.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/un_anf.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/un_anf.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/un_anf.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/un_anf.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/un_anf.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_closures.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_closures.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_closures.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_closures.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_closures.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_free_vars_of_closures.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_free_vars_of_closures.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_free_vars_of_closures.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_free_vars_of_closures.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_free_vars_of_closures.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_specialised_args.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_specialised_args.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_specialised_args.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_specialised_args.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/unbox_specialised_args.mli
lib/ocaml/compiler-libs/untypeast.cmi
lib/ocaml/compiler-libs/untypeast.cmt
lib/ocaml/compiler-libs/untypeast.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/untypeast.cmx
lib/ocaml/compiler-libs/untypeast.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/var_within_closure.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/var_within_closure.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/var_within_closure.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/var_within_closure.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/var_within_closure.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/variable.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/variable.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/variable.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/variable.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/variable.mli
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/compiler-libs/warnings.cmi
lib/ocaml/compiler-libs/warnings.cmt
lib/ocaml/compiler-libs/warnings.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/warnings.cmx
lib/ocaml/compiler-libs/warnings.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_ast.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_ast.cmti
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_ast.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_dsl.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_dsl.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_dsl.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_dsl.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_dsl.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_gas.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_gas.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_gas.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_gas.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_gas.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_masm.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_masm.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_masm.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_masm.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_masm.mli
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_proc.cmi
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_proc.cmt
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_proc.cmti
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_proc.cmx
${PLIST.ocaml-opt}lib/ocaml/compiler-libs/x86_proc.mli
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/complex.ml
lib/ocaml/complex.mli
lib/ocaml/digest.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/digest.mli
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/dynlink.a
lib/ocaml/dynlink.cma
lib/ocaml/dynlink.cmi
lib/ocaml/dynlink.cmti
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/dynlink.cmx
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/dynlink.cmxa
lib/ocaml/dynlink.mli
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/dynlink_common.cmx
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/dynlink_platform_intf.cmx
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/dynlink_types.cmx
lib/ocaml/ephemeron.ml
lib/ocaml/ephemeron.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/expunge
lib/ocaml/extract_crc
lib/ocaml/filename.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/filename.mli
lib/ocaml/float.ml
lib/ocaml/float.mli
lib/ocaml/format.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/format.mli
lib/ocaml/fun.ml
lib/ocaml/fun.mli
lib/ocaml/gc.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/gc.mli
lib/ocaml/genlex.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/genlex.mli
lib/ocaml/hashtbl.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/hashtbl.mli
lib/ocaml/int.ml
lib/ocaml/int.mli
lib/ocaml/int32.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/int32.mli
lib/ocaml/int64.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/int64.mli
lib/ocaml/lazy.ml
lib/ocaml/lazy.mli
lib/ocaml/ld.conf
2000-08-22 04:54:54 +02:00
lib/ocaml/lexing.ml
lib/ocaml/lexing.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/libasmrun.a
${PLIST.ocaml-opt}lib/ocaml/libasmrun_pic.a
${PLIST.ocaml-opt}lib/ocaml/libasmrun_shared.so
${PLIST.ocaml-opt}lib/ocaml/libasmrund.a
${PLIST.instrumented_runtime}${PLIST.ocaml-opt}lib/ocaml/libasmruni.a
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/libasmrunp.a
lib/ocaml/libcamlrun.a
lib/ocaml/libcamlrun_pic.a
lib/ocaml/libcamlrun_shared.so
lib/ocaml/libcamlrund.a
${PLIST.instrumented_runtime}lib/ocaml/libcamlruni.a
lib/ocaml/libcamlstr.a
${PLIST.ocaml-spacetime}${PLIST.ocaml-opt}lib/ocaml/libraw_spacetime_lib.a
lib/ocaml/libthreads.a
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/libthreadsnat.a
lib/ocaml/libunix.a
2000-08-22 04:54:54 +02:00
lib/ocaml/list.ml
lib/ocaml/list.mli
lib/ocaml/listLabels.ml
lib/ocaml/listLabels.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/map.ml
lib/ocaml/map.mli
lib/ocaml/marshal.ml
lib/ocaml/marshal.mli
lib/ocaml/moreLabels.ml
lib/ocaml/moreLabels.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/nativeint.ml
lib/ocaml/nativeint.mli
lib/ocaml/obj.ml
lib/ocaml/obj.mli
lib/ocaml/objinfo_helper
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/ocamldoc.hva
lib/ocaml/ocamldoc/odoc.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_analyse.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_analyse.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_args.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_args.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_ast.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_ast.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_class.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_class.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_comments.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_comments.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_comments_global.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_comments_global.cmx
lib/ocaml/ocamldoc/odoc_config.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_config.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_control.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_control.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_cross.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_cross.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_dag2html.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_dag2html.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_dep.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_dep.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_dot.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_dot.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_env.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_env.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_exception.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_exception.cmx
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
lib/ocaml/ocamldoc/odoc_extension.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_extension.cmx
Update to version 4.00.1. Renamed patches from two-letter system and added comments. Updated buildlink3.mk to default to a full dependency (more pertinent in most cases; usually the standard library needs to be installed for an ocaml program to run) Changes from 3.12 to 4.00.1 include: OCaml 4.00.1: ------------- Various bug fixes. OCaml 4.00.0: ------------- (Changes that can break existing programs are marked with a "*") - The official name of the language is now OCaml. Language features: - Added Generalized Algebraic Data Types (GADTs) to the language. See chapter "Language extensions" of the reference manual for documentation. - It is now possible to omit type annotations when packing and unpacking first-class modules. The type-checker attempts to infer it from the context. Using the -principal option guarantees forward compatibility. - New (module M) and (module M : S) syntax in patterns, for immediate unpacking of a first-class module. Compilers: - Revised simplification of let-alias (PR#5205, PR#5288) - Better reporting of compiler version mismatch in .cmi files * Warning 28 is now enabled by default. - New option -absname to use absolute paths in error messages - Optimize away compile-time beta-redexes, e.g. (fun x y -> e) a b. - Added option -bin-annot to dump the AST with type annotations. - Added lots of new warnings about unused variables, opens, fields, constructors, etc. * New meaning for warning 7: it is now triggered when a method is overridden with the "method" keyword. Use "method!" to avoid the warning. Native-code compiler: - Optimized handling of partially-applied functions (PR#5287) - Small improvements in code generated for array bounds checks (PR#5345, PR#5360). * New ARM backend (PR#5433): . Supports both Linux/EABI (armel) and Linux/EABI+VFPv3 (armhf). . Added support for the Thumb-2 instruction set with average code size savings of 28%. . Added support for position-independent code, natdynlink, profiling and exception backtraces. - Generation of CFI information, and filename/line number debugging (with -g) annotations, enabling in particular precise stack backtraces with the gdb debugger. Currently supported for x86 32-bits and 64-bits only. (PR#5487) - New tool: ocamloptp, the equivalent of ocamlcp for the native-code compiler. OCamldoc: - PR#5645: ocamldoc doesn't handle module/type substitution in signatures - PR#5544: improve HTML output (less formatting in html code) - PR#5522: allow refering to record fields and variant constructors - fix PR#5419 (error message in french) - fix PR#5535 (no cross ref to class after dump+load) * Use first class modules for custom generators, to be able to load various plugins incrementally adding features to the current generator * PR#5507: Use Location.t structures for locations. - fix: do not keep code when not told to keep code. Standard library: - Added float functions "hypot" and "copysign" (PR#3806, PR#4752, PR#5246) * Arg: options with empty doc strings are no longer included in the usage string (PR#5437) - Array: faster implementations of "blit", "copy", "sub", "append" and "concat" (PR#2395, PR#2787, PR#4591) * Hashtbl: . Statistically-better generic hash function based on Murmur 3 (PR#5225) . Fixed behavior of generic hash function w.r.t. -0.0 and NaN (PR#5222) . Added optional "random" parameter to Hashtbl.create to randomize collision patterns and improve security (PR#5572, CVE-2012-0839) . Added "randomize" function and "R" parameter to OCAMLRUNPARAM to turn randomization on by default (PR#5572, CVE-2012-0839) . Added new functorial interface "MakeSeeded" to support randomization with user-provided seeded hash functions. . Install new header <caml/hash.h> for C code. - Filename: on-demand (lazy) initialization of the PRNG used by "temp_file". - Marshal: marshalling of function values (flag Marshal.Closures) now also works for functions that come from dynamically-loaded modules (PR#5215) - Random: . More random initialization (Random.self_init()), using /dev/urandom when available (e.g. Linux, FreeBSD, MacOS X, Solaris) * Faster implementation of Random.float (changes the generated sequences) - Scanf: new function "unescaped" (PR#3888) - Set and Map: more efficient implementation of "filter" and "partition" - String: new function "map" (PR#3888) Installation procedure: - Compiler internals are now installed in `ocamlc -where`/compiler-libs. The files available there include the .cmi interfaces for all compiler modules, plus the following libraries: ocamlcommon.cma/.cmxa modules common to ocamlc, ocamlopt, ocaml ocamlbytecomp.cma/.cmxa modules for ocamlc and ocaml ocamloptcomp.cma/.cmxa modules specific to ocamlopt camltoplevel.cma modules specific to ocaml (PR#1804, PR#4653, frequently-asked feature). * Some .cmi for toplevel internals that used to be installed in `ocamlc -where` are now to be found in `ocamlc -where`/compiler-libs. Add "-I +compiler-libs" where needed. * toplevellib.cma is no longer installed because subsumed by ocamlcommon.cma ocamlbytecomp.cma ocamltoplevel.cma - Added a configuration option (-with-debug-runtime) to compile and install a debug version of the runtime system, and a compiler option (-runtime-variant) to select the debug runtime. and various bug fixes.
2012-10-08 17:05:32 +02:00
lib/ocaml/ocamldoc/odoc_gen.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_gen.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_global.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_global.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_html.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_html.cmx
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_info.a
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_info.cma
lib/ocaml/ocamldoc/odoc_info.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/ocamldoc/odoc_info.cmt
lib/ocaml/ocamldoc/odoc_info.cmti
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_info.cmx
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_info.cmxa
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_info.mli
lib/ocaml/ocamldoc/odoc_inherit.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_inherit.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_latex.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_latex.cmx
lib/ocaml/ocamldoc/odoc_latex_style.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_latex_style.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_lexer.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_lexer.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_man.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_man.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_merge.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_merge.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_messages.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_messages.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_misc.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_misc.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_module.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_module.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_name.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_name.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_ocamlhtml.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_ocamlhtml.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_parameter.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_parameter.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_parser.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_parser.cmx
lib/ocaml/ocamldoc/odoc_print.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_print.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_scan.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_scan.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_search.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_search.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_see_lexer.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_see_lexer.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_sig.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_sig.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_str.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_str.cmx
lib/ocaml/ocamldoc/odoc_test.cmi
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_texi.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_texi.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_text.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_text.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_text_lexer.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_text_lexer.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_text_parser.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_text_parser.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_to_text.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_to_text.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_type.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_type.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_types.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_types.cmx
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/ocamldoc/odoc_value.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/ocamldoc/odoc_value.cmx
2000-08-22 04:54:54 +02:00
lib/ocaml/oo.ml
lib/ocaml/oo.mli
lib/ocaml/option.ml
lib/ocaml/option.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/parsing.ml
lib/ocaml/parsing.mli
lib/ocaml/pervasives.ml
2000-08-22 04:54:54 +02:00
lib/ocaml/printexc.ml
lib/ocaml/printexc.mli
lib/ocaml/printf.ml
lib/ocaml/printf.mli
lib/ocaml/profiling.cmi
lib/ocaml/profiling.cmo
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/profiling.cmt
lib/ocaml/profiling.cmti
${PLIST.ocaml-opt}lib/ocaml/profiling.cmx
${PLIST.ocaml-opt}lib/ocaml/profiling.o
2000-08-22 04:54:54 +02:00
lib/ocaml/queue.ml
lib/ocaml/queue.mli
lib/ocaml/random.ml
lib/ocaml/random.mli
${PLIST.ocaml-spacetime}${PLIST.ocaml-opt}lib/ocaml/raw_spacetime_lib.a
${PLIST.ocaml-spacetime}lib/ocaml/raw_spacetime_lib.cma
${PLIST.ocaml-spacetime}lib/ocaml/raw_spacetime_lib.cmi
${PLIST.ocaml-spacetime}lib/ocaml/raw_spacetime_lib.cmti
${PLIST.ocaml-spacetime}${PLIST.ocaml-opt}lib/ocaml/raw_spacetime_lib.cmx
${PLIST.ocaml-spacetime}${PLIST.ocaml-opt}lib/ocaml/raw_spacetime_lib.cmxa
${PLIST.ocaml-nat}${PLIST.ocaml-spacetime}${PLIST.ocaml-opt}lib/ocaml/raw_spacetime_lib.cmxs
${PLIST.ocaml-spacetime}lib/ocaml/raw_spacetime_lib.mli
lib/ocaml/result.ml
lib/ocaml/result.mli
Update lang/ocaml to 3.06, using patch supplied by Martin Weber (ephaeton at gmx dot net) in PR pkg/18023. Besten Dank! Changes from 3.04 to 3.05 (abbreviated list, full list available at http://caml.inria.fr/archives/200207/msg00558.html): Language features: - Support for polymorphic methods and record fields. - Allows _ separators in integer and float literals, e.g. 1_000_000. Type-checker: - Fixed subtle typing bug with higher-order functors. - Fixed several complexity problems; - Fixed various bugs with objects and polymorphic variants. Bytecode compiler: - Fixed issue with ocamlc.opt and dynamic linking. Native-code compiler: - Fixed GC bug related to constant constructors of polymorphic variant types. - Fixed compilation bug for top-level "include" statements. Toplevel interactive system: - ocamlmktop: minimized possibility of name clashes with user-provided modules. Run-time system: - Better support for lazy data in the garbage collector. - Support for float formats that are neither big-endian nor little-endian - Fixed bug in callback*_exn functions in the exception-catching case. Standard library: - Protect against integer overflow in sub-string and sub-array bound checks. - New module Complex implementing arithmetic over complex numbers. - New module Scanf implementing format-based scanning a la scanf() in C. - various fixes and enhancements to existing modules Tools: - ocamldoc part of distribution - Debugger: now supports the option -I +dir. - ocamllex: supports the same identifiers as ocamlc; Changes from 3.05 to 3.06: Type-checking: - Apply value restriction to polymorphic record fields. Run-time system: - Fixed GC bug affecting lazy values. Both compilers: - Added option "-version" to print just the version number. - Fixed wrong dependencies in .cmi generated with the -pack option. Native-code compiler: - Fixed wrong return value for inline bigarray assignments. Libraries: - Unix.getsockopt: make sure result is a valid boolean. Tools: - ocamlbrowser: improved error reporting;
2002-08-22 04:56:51 +02:00
lib/ocaml/scanf.ml
lib/ocaml/scanf.mli
lib/ocaml/seq.ml
lib/ocaml/seq.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/set.ml
lib/ocaml/set.mli
Updated package to latest version, ocaml 4.04.0. This involved removing some patches that have been migrated upstream. Changes (bug numbers removed so they don't trigger our system) include: (Changes that can break existing programs are marked with a "*") ### Language features: - Support GADT equations on non-local abstract types (Jacques Garrigue) - Local opening of modules in a pattern. Syntax: "M.(p)", "M.[p]","M.[| p |]", "M.{p}" (Florian Angeletti, Jacques Garrigue, review by Alain Frisch) - local exception declarations "let exception ... in" (Alain Frisch) - Allow shortcut for extension on semicolons: ;%foo (Jeremie Dimino) - optimized representation for immutable records with a single field, and concrete types with a single constructor with a single argument. This is triggered with a [@@unboxed] attribute on the type definition. Currently mutually recursive datatypes are not well supported, this limitation should be lifted in the future (see M). (Damien Doligez) ### Compiler user-interface and warnings: * interpret all command-line options before compiling any files, changes (improves) the semantics of repeated -o options or -o combined with -c see the super-detailed commit message at https://github.com/ocaml/ocaml/commit/da56cf6dfdc13c09905c2e07f1d4849c8346eec8 (whitequark) - clarify the wording of Warning 38 (Unused exception or extension constructor) (Gabriel Scherer) * add colors when reporting errors generated by ppx rewriters. Remove the `Location.errorf_prefixed` function which is no longer relevant (Simon Cruanes, Jérémie Dimino) - clarify the wording of Warning 8 (Non-exhaustivity warning for pattern matching) (Florian Angeletti, review and report by Gabriel Scherer) * Improve support for OCAMLPARAM: (i) do not use objects files with -a, -pack, -shared; (ii) use "before" objects in the toplevel (but not "after" objects); (iii) use -I dirs in the toplevel, (iv) fix bug where -I dirs were ignored when using threads (Marc Lasson, review by Damien Doligez and Alain Frisch) - New -plugin option for ocamlc and ocamlopt, to dynamically extend the compilers at runtime. (Fabrice Le Fessant) - Detect unused module declarations (Alain Frisch) - Add a settable Env.Persistent_signature.load function so that cmi files can be loaded from other sources. This can be used to create self-contained toplevels. (Jérémie Dimino) ### Standard library: - Provide `Sys.backend_type` so that user can write backend-specific code in some cases (for example, code generator). (Hongbo Zhang) - implement Set.map (Gabriel Scherer) - Add Obj.reachable_words to compute the "transitive" heap size of a value (Alain Frisch, review by Mark Shinwell and Damien Doligez) - Add a non-allocating function to recover the number of allocated minor words. (Pierre Chambart, review by Damien Doligez and Gabriel Scherer) - String.split_on_char (Alain Frisch) - Filename.extension and Filename.remove_extension (Alain Frisch, request by Edgar Aroutiounian, review by Daniel Bunzli and Damien Doligez) ### Code generation and optimizations: - Optimize Hashtbl by using in-place updates of its internal bucket lists. All operations run in constant stack size and are usually faster, except Hashtbl.copy which can be much slower (Alain Frisch) * Optimize performance of record update: no more performance cliff when { foo with t1 = ..; t2 = ...; ... } hits 6 updated fields (Olivier Nicole, review by Thomas Braibant and Pierre Chambart) - Better unboxing strategy (Alain Frisch, Pierre Chambart) - Ocamlopt + flambda requires a lot of memory to compile large array literal expressions (Pierre Chambart, review by Mark Shinwell) - Handle specialisation of recursive function that does not always preserve the arguments (Pierre Chambart, Mark Shinwell, report by Simon Cruanes) - Obj.is_block is now an inlined OCaml function instead of a C external. This should be faster. (Demi Obenour) - Optimize immutable float records (Pierre Chambart, review by Mark Shinwell) - Do not generate dummy code to force module linking (Pierre Chambart, reviewed by Jacques Garrigue) - Do not eliminate boxed int divisions by zero and avoid checking twice if divisor is zero with flambda. (Pierre Chambart, report by Jeremy Yallop) - Optimize some constant string operations when the "-safe-string" configure time option is enabled. (Pierre Chambart) - Load cross module information during a meet (Pierre Chambart, report by Leo White, review by Mark Shinwell) - Share a few more equal switch branches (Pierre Chambart, review by Gabriel Scherer) - Small improvements to type-based optimizations for array and lazy (Alain Frisch, review by Pierre Chambart) - Prevent warning 59 from triggering on Lazy of constants (Pierre Chambart, review by Leo White) - Sort emitted functions according to source location (Pierre Chambart, review by Mark Shinwell) - Lack of type normalization lead to missing simple compilation for "lazy x" (Alain Frisch) ### Runtime system: - Allows to register finalisation function that are called only when a value will never be reachable anymore. The drawbacks compared to the existing one is that the finalisation function is not called with the value as argument. These finalisers are registered with `GC.finalise_last` (François Bobot reviewed by Damien Doligez and Leo White) - Do not perform compaction if the real overhead is less than expected (Thomas Braibant) ### Tools: - toplevel #show, follow chains of module aliases (Gabriel Scherer, report by Daniel Bünzli, review by Thomas Refis) - have ocamldep interpret -open arguments in left-to-right order (Gabriel Scherer, report by Anton Bachin) - ocamldoc, missing line breaks in type_*.html files (Florian Angeletti) - ocamldoc, improved support for inline records (Florian Angeletti) - ensure "ocamllex -ml" works with -safe-string (Hongbo Zhang) - ocamldoc, add viewport metadata to generated html pages (Florian Angeletti, request by Daniel Bünzli) - Make the output of ocamldep more stable (Alain Frisch) - empty documentation comments (Florian Angeletti) - Add the -no-version option to the toplevel (Sébastien Hinderer) - Add a --strict option to ocamlyacc treat conflicts as errors (this option is now used for the compiler's parser) (Jeremy Yallop) - make ocamldoc use -open arguments (Florian Angeletti) - ocamldoc, fix order of extensible variant constructors (Florian Angeletti) ### Debugging and profiling: - Spacetime, a new memory profiler (Mark Shinwell, Leo White) ### Runtime system: - Add a new primitive caml_alloc_float_array to allocate an array of floats (Thomas Braibant) ### Manual and documentation: - document the existence of OCAMLPARAM and ocaml_compiler_internal_params (Damien Doligez, reports by Wim Lewis and Gabriel Scherer) - warn users against using WinZip to unpack the source archive (Damien Doligez, report by Shayne Fletcher) - clarification to the wording and documentation of Warning 52 (fragile constant pattern) (Gabriel Scherer, William, Adrien Nader, Jacques Garrigue) - Restore 4.02.3 behaviour of Unix.fstat, if the file descriptor doesn't wrap a regular file (win32unix only) (Andreas Hauptmann, review by David Allsopp) - flatten : Avoid confusion (Damien Doligez, report by user 'tormen') - Gc.finalise and lazy values (Jeremy Yallop) - Document that [Store_field] must not be used to populate arrays of values declared using [CAMLlocalN] (Mark Shinwell) ### Build system: - Compiler developers: Adding new primitives to the standard runtime doesn't require anymore to run `make bootstrap` (François Bobot) - Fix compilation using old Microsoft C Compilers not supporting secure CRT functions (SDK Visual Studio 2005 compiler and earlier) and standard 64-bit integer literals (Visual Studio .NET 2002 and earlier) (David Allsopp) - More sharing between Unix and Windows makefiles (whitequark, review by Alain Frisch) * Installed `ocamlc`, `ocamlopt`, and `ocamllex` are now the native-code versions of the tools, if those versions were built. (Demi Obenour) - "./configure -safe-string" to get a system where "-unsafe-string" is not allowed, thus giving stronger non-local guarantees about immutability of strings (Alain Frisch, review by Hezekiah M. Carty) ### Bug fixes: * Missed Type-error leads to a segfault upon record access. (Jacques Garrigue, extra report by Stephen Dolan) Proper fix required a more restrictive approach to recursive types: mutually recursive types are seen as abstract types (i.e. non-contractive) when checking the well-foundedness of the recursion. * Nominal types and scope escaping. Revert to strict scope for non-generalizable type variables, cf. Mantis. Note that this is actually stricter than the behavior before 4.03, cf. , meaning that you may sometimes need to add type annotations to explicitly instantiate non-generalizable type variables. (Jacques Garrigue, following discussion with Jeremy Yallop, Nicolas Ojeda Bar and Alain Frisch) - Aliased arguments ignored for equality of module types (Jacques Garrigue, report by Leo White) - compiler forcing aliases it shouldn't while reporting type errors (Jacques Garrigue, report and suggestion by sliquister) - document that Unix.SOCK_SEQPACKET is not really usable. - uncaught exception on invalid lexer directive (Gabriel Scherer, report by KC Sivaramakrishnan using afl-fuzz) - revert a 4.03 change of behavior on (Unix.sleep 0.), it now calls (nano)sleep for 0 seconds as in (< 4.03) versions. (Hannes Mehnert, review by Damien Doligez) - GADT + subtyping compile time crash (Jacques Garrigue, report by Nicolas Ojeda Bar) - Segfault from conjunctive constraints in GADT (Jacques Garrigue, report by Stephen Dolan) - Support more than FD_SETSIZE sockets in Windows' emulation of select (David Scott, review by Alain Frisch) * Prevent private inline records from being mutated (Alain Frisch, report by Pierre Chambart) - Bug in mcomp_fields leads to segfault (Jacques Garrigue, report by Leo White) - Relaxed value restriction broken with principal (Jacques Garrigue, report by Leo White) - -strict-sequence turns off Warning 21 (Jacques Garrigue, report by Valentin Gatien-Baron) - remove access to OCaml heap inside blocking section in win32unix (David Allsopp, report by Andreas Hauptmann) - remove access to OCaml heap inside blocking in Unix.sleep on Windows (David Allsopp) - -principal causes loop in type checker when compiling (Jacques Garrigue, report by Anil Madhavapeddy, analysis by Leo White) - Missing exhaustivity check for extensible variant (Jacques Garrigue, report by Elarnon *) - Contractiveness check unsound with constraints (Jacques Garrigue, report by Leo White) - GADT constructors can be re-exposed with an incompatible type (Jacques Garrigue, report by Alain Frisch) - Unsoundness in GADT exhaustiveness with existential variables (Jacques Garrigue, report by Stephen Dolan) * Thread library: fixed [Thread.wait_signal] so that it converts back the signal number returned by [sigwait] to an OS-independent number (Jérémie Dimino) - (similar to ) ensure that register typing constraints are respected at N-way join points in the control flow graph (Mark Shinwell) - Fix float_of_hex parser to correctly reject some invalid forms (Bogdan Tătăroiu, review by Thomas Braibant and Alain Frisch) - Fix maximum weak bucket size (Nicolas Ojeda Bar, review by François Bobot) - Allow more module aliases in strengthening (Leo White) - Fix wrong code generation involving lazy values in Flambda mode (Mark Shinwell, review by Pierre Chambart and Alain Frisch) - Fix infinite loop in flambda due to [@@specialise] annotations - Building native runtime on Windows could fail when bootstrapping FlexDLL if there was also a system-installed flexlink (David Allsopp, report Michael Soegtrop) - check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel Bünzli, Fabrice Le Fessant) - check for integer overflow in Array.concat (Jeremy Yallop) - fix the Buffer.add_substring bounds check to handle overflow (Jeremy Yallop) - Fix [@@inline] with default parameters in flambda (Leo White) - fix build on OpenIndiana (Sergey Avseyev, review by Damien Doligez) ### Internal/compiler-libs changes: - Improve, fix, and add test for parsing/pprintast.ml (Runhang Li, David Sheets, Alain Frisch) - make driver/pparse.ml functions type-safe (Gabriel Scherer, Dmitrii Kosarev, review by Jérémie Dimino) - Improve Texp_record constructor representation, and propagate updated record type information (Pierre Chambart, review by Alain Frisch) - Graphics.close_graph crashes 64-bit Windows ports (re-implementation of ) (David Allsopp) - delay registration of docstring after the mapper is applied (Hugo Heuzard, review by Leo White) - don't attach (**/**) comments to any particular node (Thomas Refis, review by Leo White)
2016-12-30 12:15:00 +01:00
lib/ocaml/spacetime.ml
lib/ocaml/spacetime.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/stack.ml
lib/ocaml/stack.mli
lib/ocaml/stdLabels.ml
lib/ocaml/stdLabels.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/std_exit.cmi
lib/ocaml/std_exit.cmo
lib/ocaml/std_exit.cmt
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/std_exit.cmx
2000-08-22 04:54:54 +02:00
lib/ocaml/std_exit.ml
${PLIST.ocaml-opt}lib/ocaml/std_exit.o
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}lib/ocaml/std_exit.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/std_exit.p.cmx
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/std_exit.p.o
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/stdlib.a
2000-08-22 04:54:54 +02:00
lib/ocaml/stdlib.cma
lib/ocaml/stdlib.cmi
lib/ocaml/stdlib.cmt
lib/ocaml/stdlib.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib.cmx
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/stdlib.cmxa
lib/ocaml/stdlib.ml
lib/ocaml/stdlib.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib.p.a
${PLIST.ocaml-prof}lib/ocaml/stdlib.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib.p.cmx
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib.p.cmxa
lib/ocaml/stdlib__arg.cmi
lib/ocaml/stdlib__arg.cmt
lib/ocaml/stdlib__arg.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__arg.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__arg.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__arg.p.cmx
lib/ocaml/stdlib__array.cmi
lib/ocaml/stdlib__array.cmt
lib/ocaml/stdlib__array.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__array.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__array.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__array.p.cmx
lib/ocaml/stdlib__arrayLabels.cmi
lib/ocaml/stdlib__arrayLabels.cmt
lib/ocaml/stdlib__arrayLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__arrayLabels.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__arrayLabels.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__arrayLabels.p.cmx
lib/ocaml/stdlib__bigarray.cmi
lib/ocaml/stdlib__bigarray.cmt
lib/ocaml/stdlib__bigarray.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__bigarray.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__bigarray.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__bigarray.p.cmx
lib/ocaml/stdlib__bool.cmi
lib/ocaml/stdlib__bool.cmt
lib/ocaml/stdlib__bool.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__bool.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__bool.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__bool.p.cmx
lib/ocaml/stdlib__buffer.cmi
lib/ocaml/stdlib__buffer.cmt
lib/ocaml/stdlib__buffer.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__buffer.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__buffer.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__buffer.p.cmx
lib/ocaml/stdlib__bytes.cmi
lib/ocaml/stdlib__bytes.cmt
lib/ocaml/stdlib__bytes.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__bytes.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__bytes.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__bytes.p.cmx
lib/ocaml/stdlib__bytesLabels.cmi
lib/ocaml/stdlib__bytesLabels.cmt
lib/ocaml/stdlib__bytesLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__bytesLabels.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__bytesLabels.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__bytesLabels.p.cmx
lib/ocaml/stdlib__callback.cmi
lib/ocaml/stdlib__callback.cmt
lib/ocaml/stdlib__callback.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__callback.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__callback.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__callback.p.cmx
lib/ocaml/stdlib__char.cmi
lib/ocaml/stdlib__char.cmt
lib/ocaml/stdlib__char.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__char.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__char.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__char.p.cmx
lib/ocaml/stdlib__complex.cmi
lib/ocaml/stdlib__complex.cmt
lib/ocaml/stdlib__complex.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__complex.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__complex.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__complex.p.cmx
lib/ocaml/stdlib__digest.cmi
lib/ocaml/stdlib__digest.cmt
lib/ocaml/stdlib__digest.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__digest.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__digest.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__digest.p.cmx
lib/ocaml/stdlib__ephemeron.cmi
lib/ocaml/stdlib__ephemeron.cmt
lib/ocaml/stdlib__ephemeron.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__ephemeron.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__ephemeron.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__ephemeron.p.cmx
lib/ocaml/stdlib__filename.cmi
lib/ocaml/stdlib__filename.cmt
lib/ocaml/stdlib__filename.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__filename.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__filename.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__filename.p.cmx
lib/ocaml/stdlib__float.cmi
lib/ocaml/stdlib__float.cmt
lib/ocaml/stdlib__float.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__float.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__float.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__float.p.cmx
lib/ocaml/stdlib__format.cmi
lib/ocaml/stdlib__format.cmt
lib/ocaml/stdlib__format.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__format.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__format.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__format.p.cmx
lib/ocaml/stdlib__fun.cmi
lib/ocaml/stdlib__fun.cmt
lib/ocaml/stdlib__fun.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__fun.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__fun.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__fun.p.cmx
lib/ocaml/stdlib__gc.cmi
lib/ocaml/stdlib__gc.cmt
lib/ocaml/stdlib__gc.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__gc.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__gc.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__gc.p.cmx
lib/ocaml/stdlib__genlex.cmi
lib/ocaml/stdlib__genlex.cmt
lib/ocaml/stdlib__genlex.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__genlex.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__genlex.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__genlex.p.cmx
lib/ocaml/stdlib__hashtbl.cmi
lib/ocaml/stdlib__hashtbl.cmt
lib/ocaml/stdlib__hashtbl.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__hashtbl.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__hashtbl.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__hashtbl.p.cmx
lib/ocaml/stdlib__int.cmi
lib/ocaml/stdlib__int.cmt
lib/ocaml/stdlib__int.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__int.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__int.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__int.p.cmx
lib/ocaml/stdlib__int32.cmi
lib/ocaml/stdlib__int32.cmt
lib/ocaml/stdlib__int32.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__int32.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__int32.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__int32.p.cmx
lib/ocaml/stdlib__int64.cmi
lib/ocaml/stdlib__int64.cmt
lib/ocaml/stdlib__int64.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__int64.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__int64.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__int64.p.cmx
lib/ocaml/stdlib__lazy.cmi
lib/ocaml/stdlib__lazy.cmt
lib/ocaml/stdlib__lazy.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__lazy.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__lazy.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__lazy.p.cmx
lib/ocaml/stdlib__lexing.cmi
lib/ocaml/stdlib__lexing.cmt
lib/ocaml/stdlib__lexing.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__lexing.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__lexing.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__lexing.p.cmx
lib/ocaml/stdlib__list.cmi
lib/ocaml/stdlib__list.cmt
lib/ocaml/stdlib__list.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__list.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__list.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__list.p.cmx
lib/ocaml/stdlib__listLabels.cmi
lib/ocaml/stdlib__listLabels.cmt
lib/ocaml/stdlib__listLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__listLabels.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__listLabels.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__listLabels.p.cmx
lib/ocaml/stdlib__map.cmi
lib/ocaml/stdlib__map.cmt
lib/ocaml/stdlib__map.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__map.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__map.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__map.p.cmx
lib/ocaml/stdlib__marshal.cmi
lib/ocaml/stdlib__marshal.cmt
lib/ocaml/stdlib__marshal.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__marshal.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__marshal.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__marshal.p.cmx
lib/ocaml/stdlib__moreLabels.cmi
lib/ocaml/stdlib__moreLabels.cmt
lib/ocaml/stdlib__moreLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__moreLabels.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__moreLabels.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__moreLabels.p.cmx
lib/ocaml/stdlib__nativeint.cmi
lib/ocaml/stdlib__nativeint.cmt
lib/ocaml/stdlib__nativeint.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__nativeint.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__nativeint.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__nativeint.p.cmx
lib/ocaml/stdlib__obj.cmi
lib/ocaml/stdlib__obj.cmt
lib/ocaml/stdlib__obj.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__obj.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__obj.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__obj.p.cmx
lib/ocaml/stdlib__oo.cmi
lib/ocaml/stdlib__oo.cmt
lib/ocaml/stdlib__oo.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__oo.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__oo.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__oo.p.cmx
lib/ocaml/stdlib__option.cmi
lib/ocaml/stdlib__option.cmt
lib/ocaml/stdlib__option.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__option.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__option.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__option.p.cmx
lib/ocaml/stdlib__parsing.cmi
lib/ocaml/stdlib__parsing.cmt
lib/ocaml/stdlib__parsing.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__parsing.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__parsing.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__parsing.p.cmx
lib/ocaml/stdlib__pervasives.cmi
lib/ocaml/stdlib__pervasives.cmt
${PLIST.ocaml-opt}lib/ocaml/stdlib__pervasives.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__pervasives.p.cmi
${PLIST.ocaml-prof}lib/ocaml/stdlib__pervasives.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__pervasives.p.cmx
lib/ocaml/stdlib__printexc.cmi
lib/ocaml/stdlib__printexc.cmt
lib/ocaml/stdlib__printexc.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__printexc.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__printexc.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__printexc.p.cmx
lib/ocaml/stdlib__printf.cmi
lib/ocaml/stdlib__printf.cmt
lib/ocaml/stdlib__printf.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__printf.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__printf.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__printf.p.cmx
lib/ocaml/stdlib__queue.cmi
lib/ocaml/stdlib__queue.cmt
lib/ocaml/stdlib__queue.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__queue.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__queue.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__queue.p.cmx
lib/ocaml/stdlib__random.cmi
lib/ocaml/stdlib__random.cmt
lib/ocaml/stdlib__random.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__random.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__random.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__random.p.cmx
lib/ocaml/stdlib__result.cmi
lib/ocaml/stdlib__result.cmt
lib/ocaml/stdlib__result.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__result.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__result.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__result.p.cmx
lib/ocaml/stdlib__scanf.cmi
lib/ocaml/stdlib__scanf.cmt
lib/ocaml/stdlib__scanf.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__scanf.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__scanf.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__scanf.p.cmx
lib/ocaml/stdlib__seq.cmi
lib/ocaml/stdlib__seq.cmt
lib/ocaml/stdlib__seq.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__seq.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__seq.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__seq.p.cmx
lib/ocaml/stdlib__set.cmi
lib/ocaml/stdlib__set.cmt
lib/ocaml/stdlib__set.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__set.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__set.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__set.p.cmx
lib/ocaml/stdlib__spacetime.cmi
lib/ocaml/stdlib__spacetime.cmt
lib/ocaml/stdlib__spacetime.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__spacetime.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__spacetime.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__spacetime.p.cmx
lib/ocaml/stdlib__stack.cmi
lib/ocaml/stdlib__stack.cmt
lib/ocaml/stdlib__stack.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__stack.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__stack.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__stack.p.cmx
lib/ocaml/stdlib__stdLabels.cmi
lib/ocaml/stdlib__stdLabels.cmt
lib/ocaml/stdlib__stdLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__stdLabels.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__stdLabels.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__stdLabels.p.cmx
lib/ocaml/stdlib__stream.cmi
lib/ocaml/stdlib__stream.cmt
lib/ocaml/stdlib__stream.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__stream.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__stream.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__stream.p.cmx
lib/ocaml/stdlib__string.cmi
lib/ocaml/stdlib__string.cmt
lib/ocaml/stdlib__string.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__string.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__string.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__string.p.cmx
lib/ocaml/stdlib__stringLabels.cmi
lib/ocaml/stdlib__stringLabels.cmt
lib/ocaml/stdlib__stringLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__stringLabels.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__stringLabels.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__stringLabels.p.cmx
lib/ocaml/stdlib__sys.cmi
lib/ocaml/stdlib__sys.cmt
lib/ocaml/stdlib__sys.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__sys.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__sys.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__sys.p.cmx
lib/ocaml/stdlib__uchar.cmi
lib/ocaml/stdlib__uchar.cmt
lib/ocaml/stdlib__uchar.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__uchar.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__uchar.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__uchar.p.cmx
lib/ocaml/stdlib__unit.cmi
lib/ocaml/stdlib__unit.cmt
lib/ocaml/stdlib__unit.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__unit.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__unit.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__unit.p.cmx
lib/ocaml/stdlib__weak.cmi
lib/ocaml/stdlib__weak.cmt
lib/ocaml/stdlib__weak.cmti
${PLIST.ocaml-opt}lib/ocaml/stdlib__weak.cmx
${PLIST.ocaml-prof}lib/ocaml/stdlib__weak.p.cmt
${PLIST.ocaml-prof}${PLIST.ocaml-opt}lib/ocaml/stdlib__weak.p.cmx
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/str.a
2000-08-22 04:54:54 +02:00
lib/ocaml/str.cma
lib/ocaml/str.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/str.cmti
${PLIST.ocaml-opt}lib/ocaml/str.cmx
${PLIST.ocaml-opt}lib/ocaml/str.cmxa
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/str.cmxs
2000-08-22 04:54:54 +02:00
lib/ocaml/str.mli
lib/ocaml/stream.ml
lib/ocaml/stream.mli
lib/ocaml/string.ml
lib/ocaml/string.mli
lib/ocaml/stringLabels.ml
lib/ocaml/stringLabels.mli
lib/ocaml/stublibs/dllcamlstr.so
${PLIST.ocaml-spacetime}lib/ocaml/stublibs/dllraw_spacetime_lib.so
lib/ocaml/stublibs/dllthreads.so
lib/ocaml/stublibs/dllunix.so
lib/ocaml/stublibs/dllvmthreads.so
2000-08-22 04:54:54 +02:00
lib/ocaml/sys.ml
lib/ocaml/sys.mli
lib/ocaml/target_camlheaderd
${PLIST.instrumented_runtime}lib/ocaml/target_camlheaderi
2000-08-22 04:54:54 +02:00
lib/ocaml/threads/condition.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/threads/condition.cmti
${PLIST.ocaml-opt}lib/ocaml/threads/condition.cmx
lib/ocaml/threads/condition.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/threads/event.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/threads/event.cmti
${PLIST.ocaml-opt}lib/ocaml/threads/event.cmx
lib/ocaml/threads/event.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/threads/mutex.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/threads/mutex.cmti
${PLIST.ocaml-opt}lib/ocaml/threads/mutex.cmx
lib/ocaml/threads/mutex.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/threads/thread.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/threads/thread.cmti
${PLIST.ocaml-opt}lib/ocaml/threads/thread.cmx
lib/ocaml/threads/thread.mli
2000-08-22 04:54:54 +02:00
lib/ocaml/threads/threadUnix.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/threads/threadUnix.cmti
${PLIST.ocaml-opt}lib/ocaml/threads/threadUnix.cmx
lib/ocaml/threads/threadUnix.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/threads/threads.a
2000-08-22 04:54:54 +02:00
lib/ocaml/threads/threads.cma
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/threads/threads.cmxa
2000-08-22 04:54:54 +02:00
lib/ocaml/topdirs.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/topdirs.cmt
lib/ocaml/topdirs.cmti
lib/ocaml/topdirs.mli
lib/ocaml/uchar.ml
lib/ocaml/uchar.mli
lib/ocaml/unit.ml
lib/ocaml/unit.mli
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
${PLIST.ocaml-opt}lib/ocaml/unix.a
2000-08-22 04:54:54 +02:00
lib/ocaml/unix.cma
lib/ocaml/unix.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/unix.cmti
${PLIST.ocaml-opt}lib/ocaml/unix.cmx
${PLIST.ocaml-opt}lib/ocaml/unix.cmxa
${PLIST.ocaml-nat}${PLIST.ocaml-opt}lib/ocaml/unix.cmxs
2000-08-22 04:54:54 +02:00
lib/ocaml/unix.mli
lib/ocaml/unixLabels.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/unixLabels.cmti
${PLIST.ocaml-opt}lib/ocaml/unixLabels.cmx
lib/ocaml/unixLabels.mli
lib/ocaml/vmthreads/condition.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/vmthreads/condition.cmti
lib/ocaml/vmthreads/condition.mli
lib/ocaml/vmthreads/event.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/vmthreads/event.cmti
lib/ocaml/vmthreads/event.mli
lib/ocaml/vmthreads/libvmthreads.a
lib/ocaml/vmthreads/mutex.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/vmthreads/mutex.cmti
lib/ocaml/vmthreads/mutex.mli
lib/ocaml/vmthreads/stdlib.cma
lib/ocaml/vmthreads/thread.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/vmthreads/thread.cmti
lib/ocaml/vmthreads/thread.mli
lib/ocaml/vmthreads/threadUnix.cmi
Updated package to latest version, 4.05. Package changes: PLIST cleanup, and added some options for native compilation. Changes from ocaml 4.04.2 include (MPR and GPR changed to M and G to not trigger our CVS hooks): (Changes that can break existing programs are marked with a "*") ### Language features: ### Code generation and optimizations: - M#7201, G#954: Correct wrong optimisation of "0 / <expr>" and "0 mod <expr>" in the case when <expr> was a non-constant evaluating to zero (Mark Shinwell, review by Gabriel Scherer, Leo White and Xavier Leroy) - M#7357, G#832: Improve compilation time for toplevel include(struct ... end : sig ... end) (Alain Frisch, report by Hongbo Zhang, review by Jacques Garrigue) - M#7533, G#1173: Correctly perform side effects for certain cases of "/" and "mod" (Mark Shinwell, report by Jan Mitgaard) - G#504: Instrumentation support for fuzzing with afl-fuzz. (Stephen Dolan, review by Alain Frisch, Pierre Chambart, Mark Shinwell, Gabriel Scherer and Damien Doligez) - G#863, G#1068, G#1069: Optimise matches with constant results to lookup tables. (Stephen Dolan, review by Gabriel Scherer, Pierre Chambart, Mark Shinwell, and bug report by Gabriel Scherer) - G#1150: Fix typo in arm64 assembler directives (KC Sivaramakrishnan) ### Runtime system: - M#385, G#953: Add caml_startup_exn (Mark Shinwell) - M#7423, G#946: expose new exception-raising functions `void caml_{failwith,invalid_argument}_value(value msg)` in addition to `void caml_{failwith,invalid_argument}(char const *msg)`. The previous functions would not free their message argument, so were inconvient for dynamically-allocated messages; the messages passed to the new functions are handled by the garbage collector. (Gabriel Scherer, review by Mark Shinwell, request by Immanuel Litzroth) - M#7557, G#1213: More security for getenv (Damien Doligez, reports by Seth Arnold and Eric Milliken, review by Xavier Leroy, David Allsopp, Stephen Dolan, Hannes Mehnert) - G#795: remove 256-character limitation on Sys.executable_name (Xavier Leroy) - G#891: Use -fno-builtin-memcmp when building runtime with gcc. (Leo White) ### Type system: - M#6608, G#901: unify record types when overriding all fields (Tadeu Zagallo and Gabriel Scherer, report by Jeremy Yallop, review by David Allsopp, Jacques Garrigue) * M#7414, G#929: Soundness bug with non-generalized type variables and functors. (compatibility: some code using module-global mutable state will fail at compile-time and is fixed by adding extra annotations; see the Mantis and Github discussions.) (Jacques Garrigue, report by Leo White) ### Compiler user-interface and warnings: - M#7050, G#748 G#843 G#864: new `-args/-args0 <file>` parameters to provide extra command-line arguments in a file -- see documentation. User programs may implement similar options using the new `Expand` constructor of the `Arg` module. (Bernhard Schommer, review by J?r?mie Dimino, Gabriel Scherer and Damien Doligez, discussion with Alain Frisch and Xavier Leroy, feature request from the Coq team) - M#7137, G#960: "-open" command line flag now accepts a module path (not a module name) (Arseniy Alekseyev and Leo White) - M#7172, G#970: add extra (ocamlc -config) options int_size, word_size, ext_exe (Gabriel Scherer, request by Daniel B?nzli) - M#7315, G#736: refine some error locations (Gabriel Scherer and Alain Frisch, report by Matej Ko??k) - M#7473, G#1025: perform proper globbing for command-line arguments on Windows (Jonathan Protzenko) - M#7479: make sure "ocamlc -pack" is only given .cmo and .cmi files, and that "ocamlopt -pack" is only given .cmx and .cmi files. (Xavier Leroy) - G#796: allow compiler plugins to declare their own arguments. (Fabrice Le Fessant) - G#829: better error when opening a module aliased to a functor (Alain Frisch) - G#911: ocamlc/ocamlopt do not pass warnings-related options to C compiler when called to compile third-party C source files (S?bastien Hinderer, review by Adrien Nader and David Allsopp) - G#915: fix -dsource (pprintast.ml) bugs (Runhang Li, review by Alain Frisch) * G#933: ocamlopt -p now reports an error on platforms that do not support profiling with gprof; dummy profiling libraries are no longer installed on such platforms. This can be tested with ocamlopt -config (S?bastien Hinderer) - G#1009: "ocamlc -c -linkall" and "ocamlopt -c -linkall" can now be used to set the "always link" flag on individual compilation units. This controls linking with finer granularity than "-a -linkall", which sets the "always link" flag on all units of the given library. (Xavier Leroy) - G#1015: add option "-plugin PLUGIN" to ocamldep too. Use compilerlibs to build ocamldep. Add option "-depend" to ocamlc/ocamlopt to behave as ocamldep. Remove any use of ocamldep to build the distribution. (Fabrice Le Fessant) - G#1027: various improvements to -dtimings, mostly including time spent in subprocesses like preprocessors (Valentin Gatien-Baron, review by Gabriel Scherer) - G#1098: the compiler now takes the boolean "OCAML_COLOR" environment variable into account if "-color" is not provided. This allows users to override the default behaviour without modifying invocations of ocaml manually. (Hannes Mehnert, Guillaume Bury, review by Daniel B?nzli, Gabriel Scherer, Damien Doligez) ### Standard library: - M#6975, G#902: Truncate function added to stdlib Buffer module (Dhruv Makwana, review by Alain Frisch and Gabriel Scherer) - M#7279, G#710: `Weak.get_copy` `Ephemeron.*_copy` doesn't copy custom blocks anymore (Fran?ois Bobot, Alain Frisch, bug reported by Martin R. Neuh?u?er, review by Thomas Braibant and Damien Doligez) * M#7500, G#1081: Remove Uchar.dump (Daniel B?nzli) - G#760: Add a functions List.compare_lengths and List.compare_length_with to avoid full list length computations (Fabrice Le Fessant, review by Leo White, Josh Berdine and Gabriel Scherer) - G#778: Arg: added option Expand that allows to expand a string argument to a string array of new arguments (Bernhard Schommer, review by Gabriel Scherer and J?r?mie Dimino) - G#849: Expose a Spacetime.enabled value (Leo White) - G#885: Option-returning variants of stdlib functions (Alain Frisch, review by David Allsopp and Bart Jacobs) - G#869: Add find_first, find_first_opt, find_last, find_last_opt to maps and sets. Find the first or last binding or element satisfying a monotonic predicate. (Gabriel de Perthuis, with contributions from Alain Frisch, review by Hezekiah M. Carty and Simon Cruanes, initial report by Gerd Stolpmann) - G#875: Add missing functions to ArrayLabels, BytesLabels, ListLabels, MoreLabels, StringLabels so they are compatible with non-labeled counterparts. Also add missing @@ocaml.deprecated attributes in StringLabels and BytesLabels. (Roma Sokolov, review by Gabriel Scherer, Jacques Garrigue, Gabriel Radanne, Alain Frisch) - G#999: Arg, do not repeat the usage message thrice when reporting an error (this was a regression in 4.03) (Florian Angeletti, review by Gabriel Scherer) - G#1042: Fix escaping of command-line arguments in Unix.create_process{,_env} under Windows. Arguments with tabs should now be received verbatim by the child process. (Nicolas Ojeda Bar, Andreas Hauptmann review by Xavier Leroy) ### Debugging and profiling: - M#7258: ocamldebug's "install_printer" command had problems with module aliases (Xavier Leroy) - G#378: Add [Printexc.raise_with_backtrace] to raise an exception using an explicit backtrace (Fran?ois Bobot, review by Gabriel Scherer, Xavier Leroy, Damien Doligez, Fr?d?ric Bour) ### Manual and documentation: - M#6597, G#1030: add forward references to language extensions that extend non-terminal symbols in the language reference section. (Florian Angeletti, review by Gabriel Scherer) - M#7497, G#1095: manual, enable numbering for table of contents (Florian Angeletti, request by Daniel B?nzli) - M#7539, G#1181: manual, update dead links in ocamldoc chapter (Florian Angeletti) - G#633: manpage and manual documentation for the `-opaque` option (Konstantin Romanov, Gabriel Scherer, review by Mark Shinwell) - G#751, G#925: add a HACKING.adoc file to contain various tips and tricks for people hacking on the repository. See also CONTRIBUTING.md for advice on sending contributions upstream. (Gabriel Scherer and Gabriel Radanne, review by David Allsopp, inspired by John Whitington) - G#916: new tool lintapidiff, use it to update the manual with @since annotations for API changes introduced between 4.00-4.05. (Edwin T?r?k, review by Gabriel Scherer, discussion with Alain Frisch, David Allsopp, S?bastien Hinderer, Damien Doligez and Xavier Leroy) - G#939: activate the caml_example environment in the language extensions section of the manual. Convert some existing code examples to this format. (Florian Angeletti) - G#1082: clarify that the use of quoted string for preprocessed foreign quotations still requires the use of an extension node [%foo ...] to mark non-standard interpretation. (Gabriel Scherer, request by Matthew Wahab in G#1066, review by Florian Angeletti) ### Other libraries: - M#7158: Event.sync, Mutex.create, Condition.create cause too many GCs. The fix is to no longer consider mutexes and condition variables as rare kernel resources. (Xavier Leroy) - M#7264: document the different behaviors of Unix.lockf under POSIX and under Win32. (Xavier Leroy, report by David Allsopp) - M#7339, G#787: Support the '0 dimension' case for bigarrays (see Bigarray documentation) (Laurent Mazare, review by Gabriel Scherer, Alain Frisch and Hezekiah M. Carty) * M#7342, G#797: fix Unix.read on pipes with no data left on Windows it previously raised an EPIPE error, it now returns 0 like other OSes (Jonathan Protzenko, review by Andreas Hauptmann and Damien Doligez) - G#650: in the Unix library, add `?cloexec:bool` optional arguments to functions that create file descriptors (`dup`, `dup2`, `pipe`, `socket`, `socketpair`, `accept`). Implement these optional arguments in the most atomic manner provided by the operating system to set (or clear) the close-on-exec flag at the same time the file descriptor is created, reducing the risk of race conditions with `exec` or `create_process` calls running in other threads, and improving security. Also: add a `O_KEEPEXEC` flag for `openfile` by symmetry with `O_CLOEXEC`. (Xavier Leroy, review by Mark Shinwell, David Allsopp and Alain Frisch, request by Romain Beauxis) - G#996: correctly update caml_top_of_stack in systhreads (Fabrice Le Fessant) - G#997, G#1077: Deprecate Bigarray.*.map_file and add Unix.map_file as a first step towards moving Bigarray to the stdlib (J?r?mie Dimino and Xavier Leroy) ### Toplevel: - M#7060, G#1035: Print exceptions in installed custom printers (Tadeu Zagallo, review by David Allsopp) ### Tools: - M#5163: ocamlobjinfo, dump globals defined by bytecode executables (St?phane Glondu) - M#7333: ocamldoc, use the first sentence of text file as a short description in overviews. (Florian Angeletti) - G#848: ocamldoc, escape link targets in HTML output (Etienne Millon, review by Gabriel Scherer, Florian Angeletti and Daniel B?nzli) - G#986: ocamldoc, use relative paths in error message to solve ocamlbuild+doc usability issue (ocaml/ocamlbuild#79) (Gabriel Scherer, review by Florian Angeletti, discussion with Daniel B?nzli) - G#1017: ocamldoc, add an option to detect code fragments that could be transformed into a cross-reference to a known element. (Florian Angeletti, review and suggestion by David Allsopp) - clarify ocamldoc text parsing error messages (Gabriel Scherer) ### Compiler distribution build system: - M#7377: remove -std=gnu99 for newer gcc versions (Damien Doligez, report by ygrek) - M#7452, G#1228: tweak GCC options to try to avoid the Skylake/Kaby lake bug (Damien Doligez, review by David Allsopp, Xavier Leroy and Mark Shinwell) - G#693: fail on unexpected errors or warnings within caml_example environment. (Florian Angeletti) - G#803: new ocamllex-based tool to extract bytecode compiler opcode information from C headers. (Nicolas Ojeda Bar) - G#827: install missing mli and cmti files, new make target install-compiler-sources for installation of compiler-libs ml files (Hendrik Tews) - G#887: allow -with-frame-pointers if clang is used as compiler on Linux (Bernhard Schommer) - G#898: fix locale-dependence of primitive list order, detected through reproducible-builds.org. (Hannes Mehnert, review by Gabriel Scherer and Ximin Luo) - G#907: Remove unused variable from the build system (S?bastien Hinderer, review by whitequark, Gabriel Scherer, Adrien Nader) - G#911: Clarify the use of C compiler related variables in the build system. (S?bastien Hinderer, review by Adrien Nader, Alain Frisch, David Allsopp) - G#919: use clang as preprocessor assembler if clang is used as compiler (Bernhard Schommer) - G#927: improve the detection of hashbang support in the configure script (Arma?l Gu?neau) - G#932: install ocaml{c,lex}->ocaml{c,lex}.byte symlink correctly when the opt target is built but opt.opt target is not. (whitequark, review by Gabriel Scherer) - G#935: allow build in Android's termux (ygrek, review by Gabriel Scherer) - G#984: Fix compilation of compiler distribution when Spacetime enabled (Mark Shinwell) - G#991: On Windows, fix installation when native compiler is not built (S?bastien Hinderer, review by David Allsopp) - G#1033: merge Unix and Windows build systems in the root directory (S?bastien Hinderer, review by Damien Doligez and Adrien Nader) - G#1047: Make .depend files generated for C sources more portable (S?bastien Hinderer, review by Xavier Leroy and David Allsopp) - G#1076: Simplify ocamlyacc's build system (S?bastien Hinderer, review by David Allsopp) ### Compiler distribution build system: Makefile factorization The compiler distribution build system (the set of Makefiles used to build the compiler distribution) traditionally had separate Makefiles for Unix and Windows, which lead to some amount of duplication and subtle differences and technical debt in general -- for people working on the compiler distribution, but also cross-compilation or porting to new systems. During the 4.05 development period, S?bastien Hinderer worked on harmonizing the build rules and merging the two build systems. * Some changes were made to the config/Makefile file which is exported as $(ocamlc -where)/Makefile.config, and on which some advanced users might rely. The changes are as follows: - a BYTERUN variable was added that points to the installed ocamlrun - the PARTIALLD variable was removed (PACKLD is more complete) - the always-empty DLLCCCOMPOPTS was removed - the SHARED variable was removed; its value is "shared" or "noshared", which duplicates the existing and more convenient SUPPORTS_SHARED_LIBRARIES variable whose value is "true" or "false". Note that Makefile.config may change further in the future and relying on it is a bit fragile. We plan to make `ocamlc -config` easier to use for scripting purposes, and have a stable interface there. If you rely on Makefile.config, you may want to get in touch with S?bastien Hinderer or participate to M#7116 (Allow easy retrieval of Makefile.config's values) or M#7172 (More information in ocamlc -config). The complete list of changes is listed below. - G#705: update Makefile.nt so that ocamlnat compiles for non-Cygwin Windows ports. (S?bastien Hinderer, review by Alain Frisch) - G#729: Make sure ocamlnat is built with a $(EXE) extension, merge rules between Unix and Windows Makefiles (S?bastien Hinderer, review by Alain Frisch) - G#762: Merge build systems in the yacc/ directory. (S?bastien Hinderer, review by David Allsopp, Alain Frisch) - G#764: Merge build systems in the debugger/ directory. (S?bastien Hinderer, review by Alain Frisch) - G#785: Merge build systems in otherlibs/systhreads/ (S?bastien Hinderer, review by Alain Frisch, David Allsopp, testing and regression fix by J?r?mie Dimino) - G#788: Merge build systems in subdirectories of otherlibs/. (S?bastien Hinderer, review by Alain Frisch) - G#808, G#906: Merge Unix and Windows build systems in the ocamldoc/ directory (S?bastien Hinderer, review by Alain Frisch) - G#812: Merge build systems in the tools/ subdirectory (S?bastien Hinderer, review by Alain Frisch) - G#866: Merge build systems in the stdlib/ directory (S?bastien Hinderer, review by David Allsopp and Adrien Nader) - G#941: Merge Unix and Windows build systems in the asmrun/ directory (S?bastien Hinderer, review by Mark Shinwell, Adrien Nader, Xavier Leroy, David Allsopp, Damien Doligez) - G#981: Merge build systems in the byterun/ directory (S?bastien Hinderer, review by Adrien Nader) - G#1033, G#1048: Merge build systems in the root directory (S?bastien Hinderer, review by Adrien Nader and Damien Doligez, testing and regression fix by Andreas Hauptmann) ### Internal/compiler-libs changes: - G#673: distinguish initialization of block fields from mutation in lambda. (Fr?d?ric Bour, review by Xavier Leroy, Stephen Dolan and Mark Shinwell) - G#744, G#781: fix duplicate self-reference in imported cmi_crcs list in .cmti files + avoid rebuilding cmi_info record when creating .cmti files (Alain Frisch, report by Daniel B?nzli, review by J?r?mie Dimino) - G#881: change `Outcometree.out_variant` to be more general. `Ovar_name of out_ident * out_type list` becomes `Ovar_type of out_type`. (Valentin Gatien-Baron, review by Leo White) - G#908: refactor PIC-handling in the s390x backend (Gabriel Scherer, review by Xavier Leroy and Mark Shinwell) ### Bug fixes - M#5115: protect all byterun/fail.c functions against uninitialized caml_global_data (only changes the bytecode behavior) (Gabriel Scherer, review by Xavier Leroy) - M#6136, G#967: Fix Closure so that overapplication evaluation order matches the bytecode compiler and Flambda. (Mark Shinwell, report by Jeremy Yallop, review by Fr?d?ric Bour) - M#6550, G#1094: Allow creation of empty .cmxa files on macOS (Mark Shinwell) - M#6594, G#955: Remove "Istore_symbol" specific operation on x86-64. This is more robust and in particular avoids assembly failures on Win64. (Mark Shinwell, review by Xavier Leroy, testing by David Allsopp and Olivier Andrieu) - M#6903: Unix.execvpe doesn't change environment on Cygwin (Xavier Leroy, report by Adrien Nader) - M#6987: Strange error message probably caused by universal variable escape (with polymorphic variants) (Jacques Garrigue, report by Mikhail Mandrykin and Leo White) - M#7216, G#949: don't require double parens in Functor((val x)) (Jacques Garrigue, review by Valentin Gatien-Baron) - M#7331: ocamldoc, avoid infinite loop in presence of self alias, i.e. module rec M:sig end = M (Florian Angeletti, review Gabriel Scherer) - M#7346, G#966: Fix evaluation order problem whereby expressions could be incorrectly re-ordered when compiling with Flambda. This also fixes one example of evaluation order in the native code compiler not matching the bytecode compiler (even when not using Flambda) (Mark Shinwell, Leo White, code review by Pierre Chambart) - M#7348: Private row variables can escape their scope (Jacques Garrigue, report by Leo White) - M#7407: Two not-quite-standard C idioms rejected by SUNWSPro compilers (Xavier Leroy) - M#7421: Soundness bug with GADTs and lazy (Jacques Garrigue, report by Leo White) - M#7424: Typechecker diverges on unboxed type declaration (Jacques Garrigue, report by Stephen Dolan) - M#7426, G#965: Fix fatal error during object compilation (also introduces new [Pfield_computed] and [Psetfield_computed] primitives) (Mark Shinwell, report by Ulrich Singer) - M#7427, G#959: Don't delete let bodies in Cmmgen (Mark Shinwell, report by Valentin Gatien-Baron) - M#7432: Linking modules compiled with -labels and -nolabels is not safe (Jacques Garrigue, report by Jeremy Yallop) - M#7437: typing assert failure with nonrec priv (Jacques Garrigue, report by Anil Madhavapeddy) - M#7438: warning +34 exposes #row with private types (Alain Frisch, report by Anil Madhavapeddy) - M#7443, G#990: spurious unused open warning with local open in patterns (Florian Angeletti, report by Gabriel Scherer) - M#7456, G#1092: fix slow compilation on source files containing a lot of similar debugging information location entries (Mark Shinwell) - M#7504: fix warning 8 with unconstrained records (Florian Angeletti, report by John Whitington) - M#7511, G#1133: Unboxed type with unboxed argument should not be accepted (Damien Doligez, review by Jeremy Yallop and Leo White) - G#805, G#815, G#833: check for integer overflow in String.concat (Jeremy Yallop, review by Damien Doligez, Alain Frisch, Daniel B?nzli, Fabrice Le Fessant) - G#881: short-paths did not apply to some polymorphic variants (Valentin Gatien-Baron, review by Leo White) - G#886: Fix Ctype.moregeneral's handling of row_name (Leo White, review by Jacques Garrigue) - G#934: check for integer overflow in Bytes.extend (Jeremy Yallop, review by Gabriel Scherer) - G#956: Keep possibly-effectful expressions when optimizing multiplication by zero. (Jeremy Yallop, review by Nicol?s Ojeda B?r, Xavier Leroy and Mark Shinwell) - G#977: Catch Out_of_range in ocamldebug's "list" command (Yunxing Dai) - G#983: Avoid removing effectful expressions in Closure, and eliminate more non-effectful ones (Alain Frisch, review by Mark Shinwell and Gabriel Scherer) - G#987: alloc_sockaddr: don't assume a null terminator. It is not inserted on macOS by system calls that fill in a struct sockaddr (e.g. getsockname). (Anton Bachin) - G#998: Do not delete unused closures in un_anf.ml. (Leo White, review by Mark Shinwell and Pierre Chambart) - G#1019: Fix fatal error in Flambda mode "[functions] does not map set of closures ID" (Pierre Chambart, code review by Mark Shinwell and Leo White) - G#1075: Ensure that zero-sized float arrays have zero tags. (Mark Shinwell, Leo White, review by Xavier Leroy) * G#1088: Gc.minor_words now returns accurate numbers. (compatibility: the .mli declaration of `Gc.minor_words` and `Gc.get_minor_free` changed, which may break libraries re-exporting these values.) (Stephen Dolan, review by Pierre Chambart and Xavier Leroy)
2017-09-08 11:12:44 +02:00
lib/ocaml/vmthreads/threadUnix.cmti
lib/ocaml/vmthreads/threadUnix.mli
Changes 3.08.3: New features: - support for ocamlopt -pack under Mac OS X (PR#2634, PR#3320) - ignore unknown warning options for forward and backward compatibility - runtime: export caml_compare_unordered (PR#3479) - camlp4: install argl.* files (PR#3439) - ocamldoc: add -man-section option - labltk: add the "solid" relief option (PR#3343) - compiler: ocamlc -i now prints variance annotations Bug fixes: - typing: fix unsoundness in type declaration variance inference. Type parameters which are constrained must now have an explicit variant annotation, otherwise they are invariant. This is not backward compatible, so this might break code which either uses subtyping or uses the relaxed value restriction (i.e. was not typable before 3.07) - typing: erroneous partial match warning for polymorphic variants (PR#3424) - runtime: handle the case of an empty command line (PR#3409, PR#3444) - stdlib: make Sys.executable_name an absolute path in native code (PR#3303) - runtime: fix memory leak in finalise.c - runtime: auto-trigger compaction even if gc is called manually (PR#3392) - stdlib: fix segfault in Obj.dup on zero-sized values (PR#3406) - camlp4: correct parsing of the $ identifier (PR#3310, PR#3469) - windows (MS tools): use link /lib instead of lib (PR#3333) - windows (MS tools): change default install destination - autoconf: better checking of SSE2 instructions (PR#3329, PR#3330) - graphics: make close_graph close the X display as well as the window (PR#3312) - num: fix big_int_of_string (empty string) (PR#3483) - num: fix big bug on 64-bit architecture (PR#3299) - str: better documentation of string_match and string_partial_match (PR#3395) - unix: fix file descriptor leak in Unix.accept (PR#3423) - unix: miscellaneous clean-ups - unix: fix documentation of Unix.tm (PR#3341) - graphics: fix problem when allocating lots of images under Windows (PR#3433) - compiler: fix error message with -pack when .cmi is missing (PR#3028) - cygwin: fix problem with compilation of camlheader (PR#3485) - stdlib: Filename.basename doesn't return an empty string any more (PR#3451) - stdlib: better documentation of Open_excl flag (PR#3450) - ocamlcp: accept -thread option (PR#3511) - ocamldep: handle spaces in file names (PR#3370) - compiler: remove spurious warning in pattern-matching on variants (PR#3424) - windows: better handling of InterpreterPath registry entry (PR#3334, PR#3432)
2005-03-24 12:32:50 +01:00
lib/ocaml/vmthreads/threads.cma
lib/ocaml/vmthreads/unix.cma
2000-08-22 04:54:54 +02:00
lib/ocaml/weak.ml
lib/ocaml/weak.mli
man/man1/ocaml.1
man/man1/ocamlc.1
man/man1/ocamlc.opt.1
2000-08-22 04:54:54 +02:00
man/man1/ocamlcp.1
man/man1/ocamldebug.1
2000-08-22 04:54:54 +02:00
man/man1/ocamldep.1
man/man1/ocamldoc.1
2000-08-22 04:54:54 +02:00
man/man1/ocamllex.1
man/man1/ocamlmktop.1
man/man1/ocamlopt.1
man/man1/ocamlopt.opt.1
Update to ocaml 4.02.0. Main changes (apart from ocamldoc and bugfixes, see also upstream changelog): Language features: - Attributes and extension nodes - Generative functors - Module aliases * Alternative syntax for string literals {id|...|id} (can break comments) - Separation between read-only strings (type string) and read-write byte sequences (type bytes). Activated by command-line option -safe-string. Build system for the OCaml distribution: - Use -bin-annot when building. - Use GNU make instead of portable makefiles. - Updated build instructions for 32-bit Mac OS X on Intel hardware. Shedding weight: * Removed Camlp4 from the distribution, now available as third-party software. * Removed Labltk from the distribution, now available as a third-party library. Type system: * Keep typing of pattern cases independent in principal mode - Allow opening a first-class module or applying a generative functor in the body of a generative functor. Allow it also in the body of an applicative functor if no types are created * Module aliases are now typed in a specific way, which remembers their identity. In particular this changes the signature inferred by "module type of" - Slight change in the criterion to distinguish private abbreviations and private row types: create a private abbreviation for closed objects and fixed polymorphic variants. * Compare first class module types structurally rather than nominally. Value subtyping allows module subtyping as long as the internal representation is unchanged. Compilers: - More aggressive constant propagation, including float and int32/int64/nativeint arithmetic. Constant propagation for floats can be turned off with option -no-float-const-prop, for codes that change FP rounding modes at run-time. - New back-end optimization pass: common subexpression elimination (CSE). (Reuses results of previous computations instead of recomputing them.) - New back-end optimization pass: dead code elimination. (Removes arithmetic and load instructions whose results are unused.) - Optimization of sequences of string patterns - Experimental native code generator for AArch64 (ARM 64 bits) - Optimization of integer division and modulus by constant divisors - Add "-open" command line flag for opening a single module before typing * "-o" now sets module name to the output file name up to the first "." (it also applies when "-o" is not given, i.e. the module name is then the input file name up to the first ".") * better sharing of structured constants - new flag to keep locations in cmi files - issue warning 3 when referring to a value marked with the [@@ocaml.deprecated] attribute - a new format implementation based on GADTs * Constant exception constructors no longer allocate - avoid unnecessary boxing in let - Better compilation of optional arguments with default values - ocamlopt -opaque option for incremental native compilation Toplevel interactive system: - New "#show_*" directives Runtime system: - New configure option "-no-naked-pointers" to improve performance by avoiding page table tests during block darkening and the marking phase of the major GC. In this mode, all out-of-heap pointers must point at things that look like OCaml values: in particular they must have a valid header. The colour of said headers should be black. - Fixed bug in native code version of [caml_raise_with_string] that could potentially lead to heap corruption. - Blocks initialized by [CAMLlocal*] and [caml_alloc] are now filled with [Val_unit] rather than zero. - Fixed a major performance problem on large heaps (~1GB) by making heap increments proportional to heap size by default - Structural equality treats exception specifically - efficient comparison/indexing of exceptions - avoid using unsafe C library functions (strcpy, strcat, sprintf) - An ISO C99-compliant C compiler and standard library is now assumed. (Plus special exceptions for MSVC.) In particular, emulation code for 64-bit integer arithmetic was removed, the C compiler must support a 64-bit integer type. Standard library: * Add new modules Bytes and BytesLabels for mutable byte sequences. - add List.sort_uniq and Set.of_list - a faster version of "raise" which does not maintain the backtrace - support "Unix.kill pid Sys.sigkill" under Windows - speed improvement for Buffer - efficient creation of uninitialized float arrays - Improve documentation regarding finalisers and multithreading - Trigger warning 3 for all values marked as deprecated in the documentation.
2014-10-09 21:08:28 +02:00
man/man1/ocamloptp.1
2000-08-22 04:54:54 +02:00
man/man1/ocamlprof.1
man/man1/ocamlrun.1
man/man1/ocamlyacc.1
man/man3/Arg.3
man/man3/Arg_helper.3
man/man3/Arg_helper.Make.3
man/man3/Array.3
man/man3/ArrayLabels.3
man/man3/Ast_helper.3
man/man3/Ast_helper.Attr.3
man/man3/Ast_helper.Cf.3
man/man3/Ast_helper.Ci.3
man/man3/Ast_helper.Cl.3
man/man3/Ast_helper.Const.3
man/man3/Ast_helper.Csig.3
man/man3/Ast_helper.Cstr.3
man/man3/Ast_helper.Ctf.3
man/man3/Ast_helper.Cty.3
man/man3/Ast_helper.Exp.3
man/man3/Ast_helper.Incl.3
man/man3/Ast_helper.Mb.3
man/man3/Ast_helper.Md.3
man/man3/Ast_helper.Mod.3
man/man3/Ast_helper.Ms.3
man/man3/Ast_helper.Mtd.3
man/man3/Ast_helper.Mty.3
man/man3/Ast_helper.Of.3
man/man3/Ast_helper.Opn.3
man/man3/Ast_helper.Pat.3
man/man3/Ast_helper.Rf.3
man/man3/Ast_helper.Sig.3
man/man3/Ast_helper.Str.3
man/man3/Ast_helper.Te.3
man/man3/Ast_helper.Typ.3
man/man3/Ast_helper.Type.3
man/man3/Ast_helper.Val.3
man/man3/Ast_helper.Vb.3
man/man3/Ast_invariants.3
man/man3/Ast_iterator.3
man/man3/Ast_mapper.3
man/man3/Asttypes.3
man/man3/Attr_helper.3
man/man3/Bigarray.3
man/man3/Bigarray.Array0.3
man/man3/Bigarray.Array1.3
man/man3/Bigarray.Array2.3
man/man3/Bigarray.Array3.3
man/man3/Bigarray.Genarray.3
man/man3/Bool.3
man/man3/Buffer.3
man/man3/Build_path_prefix_map.3
man/man3/Builtin_attributes.3
man/man3/Bytes.3
man/man3/BytesLabels.3
man/man3/Callback.3
man/man3/CamlinternalFormat.3
man/man3/CamlinternalFormatBasics.3
man/man3/CamlinternalLazy.3
man/man3/CamlinternalMenhirLib.3
man/man3/CamlinternalMenhirLib.Convert.3
man/man3/CamlinternalMenhirLib.Convert.Simplified.3
man/man3/CamlinternalMenhirLib.Engine.3
man/man3/CamlinternalMenhirLib.Engine.Make.3
man/man3/CamlinternalMenhirLib.EngineTypes.3
man/man3/CamlinternalMenhirLib.EngineTypes.ENGINE.3
man/man3/CamlinternalMenhirLib.EngineTypes.INCREMENTAL_ENGINE_START.3
man/man3/CamlinternalMenhirLib.EngineTypes.MONOLITHIC_ENGINE.3
man/man3/CamlinternalMenhirLib.EngineTypes.TABLE.3
man/man3/CamlinternalMenhirLib.EngineTypes.TABLE.Log.3
man/man3/CamlinternalMenhirLib.ErrorReports.3
man/man3/CamlinternalMenhirLib.General.3
man/man3/CamlinternalMenhirLib.IncrementalEngine.3
man/man3/CamlinternalMenhirLib.IncrementalEngine.EVERYTHING.3
man/man3/CamlinternalMenhirLib.IncrementalEngine.INCREMENTAL_ENGINE.3
man/man3/CamlinternalMenhirLib.IncrementalEngine.INSPECTION.3
man/man3/CamlinternalMenhirLib.IncrementalEngine.SYMBOLS.3
man/man3/CamlinternalMenhirLib.InfiniteArray.3
man/man3/CamlinternalMenhirLib.InspectionTableFormat.3
man/man3/CamlinternalMenhirLib.InspectionTableFormat.TABLES.3
man/man3/CamlinternalMenhirLib.InspectionTableInterpreter.3
man/man3/CamlinternalMenhirLib.InspectionTableInterpreter.Make.3
man/man3/CamlinternalMenhirLib.InspectionTableInterpreter.Symbols.3
man/man3/CamlinternalMenhirLib.LinearizedArray.3
man/man3/CamlinternalMenhirLib.PackedIntArray.3
man/man3/CamlinternalMenhirLib.Printers.3
man/man3/CamlinternalMenhirLib.Printers.Make.3
man/man3/CamlinternalMenhirLib.RowDisplacement.3
man/man3/CamlinternalMenhirLib.StaticVersion.3
man/man3/CamlinternalMenhirLib.TableFormat.3
man/man3/CamlinternalMenhirLib.TableFormat.TABLES.3
man/man3/CamlinternalMenhirLib.TableInterpreter.3
man/man3/CamlinternalMenhirLib.TableInterpreter.MakeEngineTable.3
man/man3/CamlinternalMod.3
man/man3/CamlinternalOO.3
man/man3/Ccomp.3
man/man3/Char.3
man/man3/Clflags.3
man/man3/Clflags.Compiler_pass.3
man/man3/Clflags.Float_arg_helper.3
man/man3/Clflags.Int_arg_helper.3
man/man3/Compiler_libs.3
man/man3/Complex.3
man/man3/Condition.3
man/man3/Config.3
man/man3/Consistbl.3
man/man3/Depend.3
man/man3/Depend.String.3
man/man3/Digest.3
man/man3/Docstrings.3
man/man3/Docstrings.WithMenhir.3
man/man3/Dynlink.3
man/man3/Ephemeron.3
man/man3/Ephemeron.GenHashTable.3
man/man3/Ephemeron.GenHashTable.MakeSeeded.3
man/man3/Ephemeron.K1.3
man/man3/Ephemeron.K1.Make.3
man/man3/Ephemeron.K1.MakeSeeded.3
man/man3/Ephemeron.K2.3
man/man3/Ephemeron.K2.Make.3
man/man3/Ephemeron.K2.MakeSeeded.3
man/man3/Ephemeron.Kn.3
man/man3/Ephemeron.Kn.Make.3
man/man3/Ephemeron.Kn.MakeSeeded.3
man/man3/Ephemeron.S.3
man/man3/Ephemeron.SeededS.3
man/man3/Event.3
man/man3/Filename.3
man/man3/Float.3
man/man3/Float.Array.3
man/man3/Float.ArrayLabels.3
man/man3/Format.3
man/man3/Fun.3
man/man3/Gc.3
man/man3/Genlex.3
man/man3/Graphics.3
man/man3/GraphicsX11.3
man/man3/Hashtbl.3
man/man3/Hashtbl.HashedType.3
man/man3/Hashtbl.Make.3
man/man3/Hashtbl.MakeSeeded.3
man/man3/Hashtbl.S.3
man/man3/Hashtbl.SeededHashedType.3
man/man3/Hashtbl.SeededS.3
man/man3/Identifiable.3
man/man3/Identifiable.Make.3
man/man3/Identifiable.Map.3
man/man3/Identifiable.Map.T.3
man/man3/Identifiable.Pair.3
man/man3/Identifiable.S.3
man/man3/Identifiable.S.Map.3
man/man3/Identifiable.S.Set.3
man/man3/Identifiable.S.T.3
man/man3/Identifiable.S.Tbl.3
man/man3/Identifiable.Set.3
man/man3/Identifiable.Set.T.3
man/man3/Identifiable.Tbl.3
man/man3/Identifiable.Tbl.T.3
man/man3/Identifiable.Thing.3
man/man3/Int.3
man/man3/Int32.3
man/man3/Int64.3
man/man3/Lazy.3
man/man3/Lexer.3
man/man3/Lexing.3
man/man3/List.3
man/man3/ListLabels.3
man/man3/Load_path.3
man/man3/Load_path.Dir.3
man/man3/Location.3
man/man3/Longident.3
man/man3/Map.3
man/man3/Map.Make.3
man/man3/Map.OrderedType.3
man/man3/Map.S.3
man/man3/Marshal.3
man/man3/Misc.3
man/man3/Misc.Color.3
man/man3/Misc.Error_style.3
man/man3/Misc.HookSig.3
man/man3/Misc.Int_literal_converter.3
man/man3/Misc.LongString.3
man/man3/Misc.MakeHooks.3
man/man3/Misc.Stdlib.3
man/man3/Misc.Stdlib.Array.3
man/man3/Misc.Stdlib.List.3
man/man3/Misc.Stdlib.Option.3
man/man3/Misc.Stdlib.String.3
man/man3/Misc.Stdlib.String.Map.3
man/man3/Misc.Stdlib.String.Set.3
man/man3/Misc.Stdlib.String.Tbl.3
man/man3/MoreLabels.3
man/man3/MoreLabels.Hashtbl.3
man/man3/MoreLabels.Hashtbl.HashedType.3
man/man3/MoreLabels.Hashtbl.Make.3
man/man3/MoreLabels.Hashtbl.MakeSeeded.3
man/man3/MoreLabels.Hashtbl.S.3
man/man3/MoreLabels.Hashtbl.SeededHashedType.3
man/man3/MoreLabels.Hashtbl.SeededS.3
man/man3/MoreLabels.Map.3
man/man3/MoreLabels.Map.Make.3
man/man3/MoreLabels.Map.OrderedType.3
man/man3/MoreLabels.Map.S.3
man/man3/MoreLabels.Set.3
man/man3/MoreLabels.Set.Make.3
man/man3/MoreLabels.Set.OrderedType.3
man/man3/MoreLabels.Set.S.3
man/man3/Mutex.3
man/man3/Nativeint.3
man/man3/Numbers.3
man/man3/Numbers.Float.3
man/man3/Numbers.Int.3
man/man3/Numbers.Int16.3
man/man3/Numbers.Int8.3
man/man3/Obj.3
man/man3/Obj.Ephemeron.3
man/man3/Obj.Extension_constructor.3
man/man3/Ocaml_operators.3
man/man3/Oo.3
man/man3/Option.3
man/man3/Parse.3
man/man3/Parser.3
man/man3/Parser.Incremental.3
man/man3/Parser.MenhirInterpreter.3
man/man3/Parsetree.3
man/man3/Parsing.3
man/man3/Pervasives.3
man/man3/Pervasives.LargeFile.3
man/man3/Pparse.3
man/man3/Pparse.ImplementationHooks.3
man/man3/Pparse.InterfaceHooks.3
man/man3/Pprintast.3
man/man3/Printast.3
man/man3/Printexc.3
man/man3/Printexc.Slot.3
man/man3/Printf.3
man/man3/Profile.3
man/man3/Queue.3
man/man3/Random.3
man/man3/Random.State.3
man/man3/Result.3
man/man3/Scanf.3
man/man3/Scanf.Scanning.3
man/man3/Seq.3
man/man3/Set.3
man/man3/Set.Make.3
man/man3/Set.OrderedType.3
man/man3/Set.S.3
man/man3/Simplif.3
man/man3/Simplif.Hooks.3
man/man3/Spacetime.3
man/man3/Spacetime.Series.3
man/man3/Spacetime.Snapshot.3
man/man3/Stack.3
man/man3/StdLabels.3
man/man3/StdLabels.Array.3
man/man3/StdLabels.Bytes.3
man/man3/StdLabels.List.3
man/man3/StdLabels.String.3
man/man3/Stdlib.3
man/man3/Stdlib.Arg.3
man/man3/Stdlib.Array.3
man/man3/Stdlib.ArrayLabels.3
man/man3/Stdlib.Bigarray.3
man/man3/Stdlib.Bool.3
man/man3/Stdlib.Buffer.3
man/man3/Stdlib.Bytes.3
man/man3/Stdlib.BytesLabels.3
man/man3/Stdlib.Callback.3
man/man3/Stdlib.Char.3
man/man3/Stdlib.Complex.3
man/man3/Stdlib.Digest.3
man/man3/Stdlib.Ephemeron.3
man/man3/Stdlib.Filename.3
man/man3/Stdlib.Float.3
man/man3/Stdlib.Format.3
man/man3/Stdlib.Fun.3
man/man3/Stdlib.Gc.3
man/man3/Stdlib.Genlex.3
man/man3/Stdlib.Hashtbl.3
man/man3/Stdlib.Int.3
man/man3/Stdlib.Int32.3
man/man3/Stdlib.Int64.3
man/man3/Stdlib.LargeFile.3
man/man3/Stdlib.Lazy.3
man/man3/Stdlib.Lexing.3
man/man3/Stdlib.List.3
man/man3/Stdlib.ListLabels.3
man/man3/Stdlib.Map.3
man/man3/Stdlib.Marshal.3
man/man3/Stdlib.MoreLabels.3
man/man3/Stdlib.Nativeint.3
man/man3/Stdlib.Obj.3
man/man3/Stdlib.Oo.3
man/man3/Stdlib.Option.3
man/man3/Stdlib.Parsing.3
man/man3/Stdlib.Pervasives.3
man/man3/Stdlib.Printexc.3
man/man3/Stdlib.Printf.3
man/man3/Stdlib.Queue.3
man/man3/Stdlib.Random.3
man/man3/Stdlib.Result.3
man/man3/Stdlib.Scanf.3
man/man3/Stdlib.Seq.3
man/man3/Stdlib.Set.3
man/man3/Stdlib.Spacetime.3
man/man3/Stdlib.Stack.3
man/man3/Stdlib.StdLabels.3
man/man3/Stdlib.Stream.3
man/man3/Stdlib.String.3
man/man3/Stdlib.StringLabels.3
man/man3/Stdlib.Sys.3
man/man3/Stdlib.Uchar.3
man/man3/Stdlib.Unit.3
man/man3/Stdlib.Weak.3
man/man3/Str.3
man/man3/Stream.3
man/man3/String.3
man/man3/StringLabels.3
man/man3/Strongly_connected_components.3
man/man3/Strongly_connected_components.Make.3
man/man3/Strongly_connected_components.S.3
man/man3/Strongly_connected_components.S.Id.3
man/man3/Syntaxerr.3
man/man3/Sys.3
man/man3/Targetint.3
man/man3/Terminfo.3
man/man3/Thread.3
man/man3/ThreadUnix.3
man/man3/Typemod.3
man/man3/Typemod.ImplementationHooks.3
man/man3/Typemod.InterfaceHooks.3
man/man3/Typemod.Sig_component_kind.3
man/man3/Typemod.Signature_names.3
man/man3/Uchar.3
man/man3/Unit.3
man/man3/Unix.3
man/man3/Unix.LargeFile.3
man/man3/UnixLabels.3
man/man3/UnixLabels.LargeFile.3
man/man3/Warnings.3
man/man3/Weak.3
man/man3/Weak.Make.3
man/man3/Weak.S.3