Commit Graph

570 Commits (7d9e60daa4e5aebf2c4a34cb42db5b562199878e)

Author SHA1 Message Date
Leo White ccf4df0758
Remove spurious Ptop_defs from #use (#9376)
* Remove spurious Ptop_defs from #use

* Add Changes entry
2020-08-25 18:01:03 +01:00
hhugo 49aa87c316
Introduce warning 68 to warn about hidden allocation due to pattern match of mutable field in curried functions (#9751)
Introduce new warning 68
2020-08-17 09:47:36 +01:00
Xavier Leroy de4377e843 Bootstrap after removal of `caml_hash_univ_param` primitive 2020-07-19 19:58:06 +02:00
Jeremy Yallop 1c9e1e0811 Bootstrap 2020-07-18 12:45:32 +01:00
Jeremy Yallop 788f744c51 Bootstrap. 2020-07-07 16:10:17 +01:00
Jacques Garrigue 603506aa34
Add injectivity annotations (#9500) 2020-06-15 13:51:50 +02:00
Xavier Leroy 0a11f73c8b Bootstrap after removal of caml_static_{alloc,free_resize} primitives
Follow-up to d6f949608
2020-06-13 18:27:00 +02:00
Xavier Leroy a1f21661a4 New representation of closures, intermediate bootstrap
ocamlc's computations of offsets in closures changed to match changes in the
abstract machine.
2020-06-05 17:44:49 +02:00
Xavier Leroy 0ca651b95c Remove Const_pointer from Lambda and Clambda (#9585), bootstrap
This is the bootstrap required by commit 0d44a6cfe.
2020-06-02 11:23:42 +02:00
Etienne Millon 71e91123c2
Attach package type attributes to core_type (#9615) 2020-05-29 14:29:10 +02:00
Nicolás Ojeda Bär 6e3f710d78 Bootstrap 2020-05-13 20:57:18 +02:00
Stephen Dolan fc2aee9429 Bootstrap 2020-04-27 12:58:53 +01:00
Gabriel Scherer 14a4510cb7 memprof: remove caml_unused memprof_start_byt and then bootstrap
Build steps for this commit (from a valid core build for the previous commit):

    make coreall
    make coreboot

(Note: `make core` would not work as we remove a primitive.)
2020-04-01 16:38:39 +02:00
Thomas Refis dec26d4ad8 bootstrap 2020-03-05 14:23:23 +01:00
Leo White ccfd2cfee4 Bootstrap 2020-03-04 15:20:32 +00:00
Gabriel Scherer 96f1ad4e63 bootstrap 2020-01-28 12:09:33 +01:00
Gabriel Scherer 63f05ad962 bootstrap 2020-01-28 11:39:52 +01:00
Florian Angeletti dc56d71b53 types: allow class type paths in #t 2020-01-20 17:21:02 +01:00
Jacques-Henri Jourdan e1a22e80fb Memprof API: cannot be start if already running, cannot be stopped if not already running. 2020-01-14 10:42:16 +01:00
Florian Angeletti 40e40a9c20 compilerlibs: expose parsers for 'Longident.t's 2020-01-09 16:45:39 +01:00
Drup 9d9d74bc2e Move loc computation to the lexer. 2019-11-25 16:23:40 +01:00
Drup a699de30ff Rename tokens for quoted extensions. 2019-11-25 14:58:53 +01:00
Drup 4092d8fc49 Fix locations for quoted extensions ids. 2019-11-13 16:08:41 +01:00
Drup abc53d1a6e Annotate constant literals with the location of their content. 2019-11-13 16:08:40 +01:00
Drup e1336a05c6 Promote menhir. 2019-11-13 14:54:28 +01:00
Florian Angeletti e9bb827ff7 bump magic numbers for 4.10
(cherry picked from commit 6423e5c9d11cfac1c07208aec9f761f37c1640f0)
2019-11-05 16:11:54 +01:00
Thomas Refis 8e928caea7
a better representation for modules with no name (#8908) 2019-10-09 14:15:37 +01:00
Jeremie Dimino 2d31ebfc8b Add support for [@@immediate64]
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2019-09-24 07:56:15 +01:00
Thomas Refis d35fc78869 bootstrap 2019-08-28 12:01:59 +01:00
Leo White 81e8d8fad4 Bootstrap 2019-08-15 17:03:11 +01:00
Jacques-Henri Jourdan 593f94055a Dynlink support for ocamldebug
This commit adds dynlink support for ocamldebug. As a side effect, it also:
  - factorizes the various functions searching for a code fragment into one,
    called [caml_find_code_fragment];
  - removes the [caml_register_code_fragment], which does not seem to
    be used anywhere, and which clearly should not be used by external code.
2019-07-16 10:52:48 +02:00
Alain Frisch 430c20bb78
A new runtime primitive for Array.fill (#8716) 2019-07-16 09:21:23 +02:00
octachron e7c72ed709 multi-indices for extended indexing operators 2019-05-13 15:26:49 +02:00
Stephen Dolan 466d3bcc84 Deprecate Obj.truncate and bootstrap. 2019-04-01 14:17:39 +01:00
Stephen Dolan 18edce3b5f Remove use of Obj.truncate from toplevel.
When running a script with "ocaml foo.ml", the toplevel needs to
run foo.ml with a different Sys.argv than the initial value, since
foo.ml must not see the initial "ocaml" argument.

Previously, this was done with Obj.truncate to shorten the Sys.argv
array. This patch changes it by introducing a primitive %sys_argv.
Uses of this primitive expand to a call to a new C primitive, which
returns the argv array (and can be modified by the toplevel).
2019-04-01 14:14:00 +01:00
Pierre Roux ed74b5b237 Enforce precision in printf %F 2019-03-09 12:03:43 +01:00
Sébastien Hinderer 6da5262dd1 Bump magic numbers to keep in sync with the 4.08 branch
This commit is the trunk counterpart of
e413426bc766c9046a18b873a417b596bf0871d7 on the 4.08 branch
2019-02-21 11:25:23 +01:00
Damien Doligez 58f9eff953 bump magic numbers and bootstrap to catch up with branch 4.08 (#2249) 2019-02-19 15:57:28 +01:00
Stephen Dolan 4721c930f5 Bootstrap 2019-02-13 11:49:58 +00:00
Thomas Refis 12b53933e3 bootstrap 2019-02-07 09:43:57 +00:00
Jeremie Dimino 7e0862a212 Refactor load path management and initial environment
- Add a Load_path module which caches files lookup

- Instead of falling back to the external environment, allow to
  declare in the environment that a module comes from the external
  world. This allows persistent structures to shadows non-persistent
  ones
2019-01-30 16:36:38 +00:00
Gabriel Scherer aa5a82e7ae bootstrap (to benefit from ocamldep changes in boot/ocamlc) 2018-12-12 09:38:43 +01:00
François Pottier 13a7d86af1 Run `make promote-menhir`. 2018-11-29 17:23:43 +01:00
Leo White 403003cad5 Add support for "let" operators 2018-11-27 13:30:55 +00:00
Thomas Refis 33ec63e3fc bootstrap 2018-11-26 16:24:09 +00:00
Runhang Li 97329f30ed Extend `open` to arbritrary module expressions in structures and to
applicative module paths in signatures
2018-11-26 16:20:37 +00:00
Alain Frisch 4c130cae87
Fix wrong calls to Env.normalize_path on non-module paths (#2131) 2018-11-22 16:07:15 +01:00
Gabriel Scherer f6837be875
Merge pull request #2151 from fpottier/improvements
Parser improvements, with a possible bug fix along the way.
2018-11-22 08:23:58 +01:00
Leo White a0c07833a4 Bootstrap 2018-11-21 03:39:34 -05:00
François Pottier 4cdcec5558 Run `make promote-menhir` using Menhir 20181113. 2018-11-21 00:06:29 +01:00