Commit Graph

417 Commits (49aa87c316c441aa47974e8e9191a5a7e6d03d9a)

Author SHA1 Message Date
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
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
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
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
Drup abc53d1a6e Annotate constant literals with the location of their content. 2019-11-13 16:08:40 +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
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
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
Thomas Refis 33ec63e3fc bootstrap 2018-11-26 16:24:09 +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
Leo White a0c07833a4 Bootstrap 2018-11-21 03:39:34 -05:00
Alain Frisch 2e5b9d1ef1
"Alerts" as a generalization of "deprecated" (#1804) 2018-11-15 09:51:35 +01:00
Thomas Refis 3c41ea438b bootstrap 2018-09-21 12:07:14 -04:00
Thomas Refis 94b55c1584 consistently make temporary local type idents local idents 2018-09-21 11:47:44 -04:00
Thomas Refis e2ffc97354 bootstrap 2018-09-13 09:36:21 +01:00
Jeremie Dimino b53a8837e9 Bootstrap 2018-09-06 16:30:37 +01:00
Thomas Refis c00a46e2cf more precise extension mismatch error messages 2018-08-09 10:18:54 +01:00
Gabriel Scherer 0f9cd35bd0 bootstrap from 1ac5954ca7 2018-08-06 17:22:25 +02:00
Gabriel Scherer 795dff76f5 Revert "boostrap"
This reverts commit c2f2a094e1.

(I forgot that we prefer to not let users bootstrap on their end, to
avoid being worried about "Reflections on Trusting Trust"
backdoors-in-bootstraps situations.)

A new bootstrap commit done from the preceding commit will follow.
2018-08-06 17:19:52 +02:00
Hugo Heuzard c2f2a094e1 boostrap 2018-08-06 13:19:28 +01:00
Thomas Refis 54b99858a6 typecore: only 1k existential per match, not a 100k
Bootstrap required because:

    File "asmcomp/mach.ml", line 1:
    Error: The files asmcomp/arch.cmi and asmcomp/mach.cmi
           make inconsistent assumptions over interface Arch

which happens because:
- Arch is compiled twice, once with the bootstrapped ocamlc, once with a
  freshly compiled ocamlopt
- Arch doesn't have an .mli
- the stamp on idents won't be the same for .ml files as a result of
  this change
2018-07-31 10:31:14 +01:00
Stefan Muenzel 8783c9a3e9 Change other tests to expect tests 2018-07-30 16:11:49 +01:00
Thomas Refis d6f8b96a4b bootstrap 2018-05-29 15:26:16 +01:00
Leo White e8c167a05f Bootstrap 2018-05-01 11:38:22 +01:00
Damien Doligez c10b2edccc bump exec magic number 2018-04-10 15:08:00 +02:00
Mark Shinwell e866ba3f68 Bootstrap to remove caml_ba_{set,get}_{4,5,6} (GPR#1685) 2018-04-09 13:26:36 +01:00
Mark Shinwell 6eb19307fd Remove caml_bitvect_test (includes bootstrap): follow-up to GPR#1679 2018-04-06 11:00:50 +01:00