Commit Graph

20387 Commits (167e66e15d94f685b2bed2b29aa0a743978dc425)

Author SHA1 Message Date
Thomas Refis 167e66e15d
type_cases: rely on levels to enforce principality (#1931)
Instead of the erasure scheme that was used up to now, where we
considered that the type was always principal.

Note: the erasure still happens when polymorphic variants appear in the
patterns, and the type of the scrutinee contains a Reither.
2020-07-08 10:35:40 +02:00
Gabriel Scherer 20fbae04eb
Merge pull request #9746 from serpent7776/trunk
Add missing space in ocamlc man page
2020-07-07 22:51:21 +02:00
Krzysztof Leśniak 761dec8c4a Add missing space 2020-07-07 21:55:36 +02:00
Jacques Garrigue 46cec117a4
Fix #9721: Injectivity and recursive modules (#9727) 2020-07-07 09:04:23 +02:00
Stephen Dolan 088fa01b3e
Merge pull request #9688 from stedolan/main-compiler-libs
Expose the main entrypoint in compilerlibs
2020-07-06 13:03:02 +01:00
Jacques-Henri Jourdan 0616261642
Get rid of dead code that was introduced for an hypothetical JIT (#9710)
That code was never used and some of it is outdated.
2020-07-05 19:41:45 +02:00
David Allsopp bdb471287f
Merge pull request #9724 from MisterDA/fix-domain-state
Fix #9714 "Compilation failure in domain_state.h"
2020-07-03 13:38:57 +01:00
Florian Angeletti 75aa1ee0bc
Merge pull request #9712 from Octachron/version_format
New format for the OCaml version string
2020-07-03 10:20:20 +02:00
Gabriel Scherer 50806ced7f
Merge pull request #9216 from gasche/lambda-duplicate
extend Lambda.subst on bound variables, add Lambda.duplicate
2020-07-02 22:55:49 +02:00
octachron cd813bc1b0 Update version format 2020-07-02 16:47:03 +02:00
Florian Angeletti ad8da05e33
Merge pull request #9726 from sanette/patch-2
misplaced subsection '*'
2020-07-02 16:31:47 +02:00
Antonin Décimo cb3af25721 Changes 2020-07-02 09:35:15 +02:00
Et7f3 c4851b0ff0
Consistently use @raise tags in Stdlib docs (#8644) 2020-06-30 14:06:45 +01:00
David Allsopp c659bb3471
Merge pull request #9723 from dra27/flexdll-0.38
Bump FlexDLL submodule to 0.38
2020-06-30 13:48:22 +01:00
Stephen Dolan 34ead63bf7 Changes 2020-06-30 10:58:17 +01:00
Stephen Dolan c2461c000c Start Clflags.parse_arguments from 0 2020-06-30 10:57:09 +01:00
Stephen Dolan 81618f7b61 Move code of main and optmain to compilerlibs 2020-06-30 10:57:09 +01:00
Stephen Dolan d5af1ffb4f Move calls to exit to main/optmain 2020-06-30 10:57:09 +01:00
珊瑚 df87f39d52
misplaced subsection '*'
and hence the rendered subsection title only contained "*"
2020-06-30 09:48:36 +02:00
Antonin Décimo cba42a3ba3 Add a terminator to the domain_state
On a 32-bits architecture, if the last member of the caml_domain_state
is a pointer, it will be 4-bytes long, and the struct will end after a
4 bytes boundary, failing the assertion.

As @xavierleroy [put it][1]:

> we don't care about the total size of the struct, but we care that
> the members before `end_of_domain_state` are spaced by 8.

[1]: https://github.com/ocaml/ocaml/issues/9714#issuecomment-650516382

See #9714.
2020-06-29 21:24:24 +02:00
Antonin Décimo 4d6d422867 Use the alignas C++ keyword when compiling in C++
See #9714.
2020-06-29 21:24:17 +02:00
David Allsopp bfd3d7deb0 Bump FlexDLL submodule to 0.38 2020-06-29 17:06:19 +01:00
Florian Angeletti 33b9b16dd7 Changes bookkeeping: 9556 is not in 4.11 2020-06-29 11:50:23 +02:00
Jacques Garrigue e0ec63ae21
Fix #8747: incorrect principality warning on functional updates of records (#9709) 2020-06-28 23:20:12 +02:00
Gabriel Scherer 38bbd7fc29
Merge pull request #9716 from sanette/patch-1
correct punctuation
2020-06-28 21:07:03 +02:00
珊瑚 b6af92155a
correct punctuation 2020-06-28 16:57:13 +02:00
octachron b212928e74 Fix Changes after backporting #9163 and #9537 2020-06-26 19:22:54 +02:00
Florian Angeletti da0e9ed1f2
Merge pull request #9537 from lpw25/fix-PR7897
Fix warning 38 for rebound extension constructors (#7897)
2020-06-26 19:04:48 +02:00
Leo White 083fa6624b Add Changes entry 2020-06-26 12:37:07 +01:00
Leo White b4361282c1 Fix PR#7897 2020-06-26 12:35:35 +01:00
Leo White 6302b1e0cc
Merge pull request #9670 from lpw25/stat-full-major-collections
Report full major collections in Gc stats
2020-06-26 12:31:47 +01:00
Leo White 368eb16ee8
Treat loops properly in un_anf (#9163) 2020-06-26 09:51:30 +02:00
Florian Angeletti 7d3a3f8c24
Merge pull request #9416 from lpw25/fix-warning-58-flambda-ocamlnat
Avoid warning 58 in flambda ocamlnat
2020-06-26 09:37:41 +02:00
Florian Angeletti 1fb6a464a8
Merge pull request #9244 from lpw25/fix-usage-warnings
Fix usage warnings
2020-06-25 18:21:04 +02:00
Xavier Leroy 8d874fa3bb CI: make "light" test lighter
Also disable shared library support.
2020-06-25 17:13:45 +02:00
Florian Angeletti 457304d075
Merge pull request #9673 from xvw/attempt-to-fix-6633
Add Hint when a module is used in place of a module type
2020-06-25 17:00:37 +02:00
Leo White 5e214047e0 Add Changes entry 2020-06-25 14:45:45 +01:00
Leo White 9e61a063c3 Avoid warning 58 in flambda ocamlnat 2020-06-25 14:45:45 +01:00
Leo White 0734368f55 Add Changes entry 2020-06-25 14:24:41 +01:00
Leo White dfd0c0cc77 Report full major collections in Gc stats 2020-06-25 14:24:41 +01:00
Thomas Refis 2d3bc0eb22
HACKING.adoc: using dune to get merlin's support (#9468)
Co-authored-by: Gabriel Scherer <gabriel.scherer@gmail.com>
2020-06-25 14:11:21 +02:00
Leo White fd2572289c Add Changes entry 2020-06-25 11:35:00 +01:00
Leo White bc8c0d2538 Make the `mark` parameters in `Includemod` non-optional 2020-06-25 11:35:00 +01:00
Leo White 1f9be49f02
Merge pull request #9385 from lpw25/fix-copy-scope-bugs
Fix copy scope bugs
2020-06-25 10:59:59 +01:00
Antonin Décimo d107fedd13
Don't define _INTEGRAL_MAX_BITS macro (#9686)
VS2019 throws the following warning [1] about the _INTEGRAL_MAX_BITS
[2] macro:

    stat.c(33): error C2220: the following warning is treated as an error
    stat.c(33): warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored

The doc reads:

> _INTEGRAL_MAX_BITS Defined as the integer literal value 64, the
> maximum size (in bits) for a non-vector integral type. This macro is
> always defined.

Apparently, it became a predefined macro in Visual Studio 2005.

This commit simply removes the macro definition.

[1]: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4117
[2]: https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019
2020-06-24 18:32:43 +02:00
Nicolás Ojeda Bär 34dbc549b8
Merge pull request #9533 from bschommer/string-suffix-prefix
String suffix and prefix functions.
2020-06-24 17:39:32 +02:00
Gabriel Scherer 244298a3d1
Merge pull request #9708 from trefis/fix-dune-prim
dune: temporarily remove use of new primitive before building
2020-06-24 17:13:44 +02:00
Xavier Leroy 4f387e4cb0 Update reference output in no-flat-float-array mode
Follow-up to bd510cdf9
2020-06-24 17:05:42 +02:00
Xavier Leroy a9fad824ca Make some tests conditional on naked pointers support
These tests use the "Is_in_static_data" predicate, which is no longer
supported in no-naked-pointers mode.
2020-06-24 15:25:03 +02:00
Thomas Refis 821391667f dune: depend on new runtime files 2020-06-24 15:15:36 +02:00