Repository activity
40458 results across all weeks
Add ocamldep `-strict` flag
Adds a -strict flag to ocamldep which makes it exit with a non-zero code whenever an error occurs (file does not exist, parse error, etc). In case of error, no output is generated.
Nicolás Ojeda Bär (@nojb)Add test for overflow for constant checkbound in cmm
Tests by claude, fix by me.
Stefan Muenzel (@smuenzel)Add tests for more bytecode optimization hints
Cover the hints on block allocations (MAKEBLOCK, MAKEFLOATBLOCK), array lengths, closure allocations (parameter and result kinds, inline attributes, functors, mutually recursive closures) and C calls (unsafe string, bytes and bigstring accesses, bigarray accesses, boxed integer comparisons and primitives with a distinct native implementation).
Jérôme Vouillon (@vouillon)Bound recursive closure name before converting its body
Disclaimer: code is written by AI then reviewed by me. This PR body is drafted by me.
Yihang "Corvo" Liu (@glyh)Bytepackager: relocate the events and hints of the pack code
When building a pack, the bytecode packager appends the code of the packed units, then compiles the code of the pack itself (building the pack module from its components, and applying the coercion to the pack interface if there is one). The relocations of this last piece of code are shifted by the size of the packed units, but its debugging events and optimi…
Jérôme Vouillon (@vouillon)Certain array indexing operations lead to segfaults in native code
This was discovered by using an LLM (claude) to enhance the smt-validation of Cmm_helpers (https://github.com/smuenzel/ocaml-pverify/compare/master...test-cmmhelpers)
Stefan Muenzel (@smuenzel)Clean up our lexers' non-exhaustive rules
Since the merging of #14448, we've had some ocamllex warnings in our build. Let's get rid of them and activate the warning-as-error so they don't come back.
Damien Doligez (@damiendoligez)Compute allocation sizes in Cmm
This is a (rather heavy) fix for the bug reported in #15154.
Vincent Laviron (@lthls)Conjunctive polymorphic variants in class parameter constraints are rejected
Original bug ID: 4569
vicunaDo not let target-specific flags leak to prerequisites
In our Makefiles we use a feature of GNU Make called "target-specific variables": target: VAR = foo or target: VAR += foo. As explained in the manual:
Nicolás Ojeda Bär (@nojb)Do not track register usage timestamp when -linscan is set.
This data is only ever accessed by the add_superpressure_regs function, which is not called when the -linscan register allocation option is set. This fast path can save a lot of time in practice, and this issue was observed in the wild in huge code generated by the Rocq native compiler.
Pierre-Marie Pédrot (@ppedrot)Emitcode: compute debug_dirs once per source file for significant compilation time improvement on MacOS
While compiling awso on MacOS with cxx-ocaml, I noticed a lot of speedup versus official OCaml was in system time which is not really where the C++ port should have an edge versus OCaml.
Michael Bacarella (@mbacarella)Fix #12301: Fix attributes not applying in some type nodes
fixes #12301
Michał Kosior (@crqch)Fix #15155: Closure projections from bottom is not an error in flambda.
This is a fix for #15155
Pierre Chambart (@chambart)Fix #15160, #15244, segfaults on array index in native code
The test are generated with claude, the fix is generated by me.
Stefan Muenzel (@smuenzel)Fix Seq.ints_in_range overflow at max_int
Stop Seq.ints_in_range at the inclusive endpoint to avoid integer overflow for ranges ending at max_int. Includes bounded regression tests for the bug introduced in #10480; related to melange-re/melange#2022.
Antonio Nuno Monteiro (@anmonteiro)Fix a race between `Gc.finalise_last` and the minor GC
Fixes #15152.
Bikal Lem (@bikallem)Fix attributes not applying in some module declaration nodes
This PR is related to #15131
Michał Kosior (@crqch)Fix changes entry for #14980
I was too quick hitting "merge". Sorry!
Stefan Muenzel (@smuenzel)Fix evaluation order of values used as field of an allocation with flambda
There is a bug with flambda (both flambda2 and flambda1) that can mix up the order of evaluation of values used as fields of an allocation (see https://github.com/oxcaml/oxcaml/pull/7562 for the flambda2 fix).
Guillaume Bury (@Gbury)