Thicket thicket
ocaml
REPOS 1

OxCaml covers the compiler extensions and their supporting tools and packages.

W45.2026 · 2–8 Novoxcaml/oxcaml

Features

  • as deref_ x pattern syntax (open PR, by bn-peters): Extends deref_ to P as deref_ x, allowing a pattern to both dereference a field and bind the address for further matching. Supported in all positions where deref_ x is valid. #7863

  • FDO annotations in fexpr output (open PR, by yusumez-js): Adds -fexpr-print-fdo-counters and -fexpr-print-branch-annotations flags to print call and branch FDO annotations in fexpr dumps. A new fdo_annotations test tool replaces fdo_entries for filtering counters by edge kind. #7844

  • -dprofile-level flag (open PR, WIP, by dra27-js): Introduces a profile-detail level to reduce -dprofile output in the CFG pass. Marked WIP; API not finalised. #7913

Fixes

  • flambda2 codegen abort on unboxed float constant in method (open, by echoumcp1): Passing #0. to an unboxed-float function inside a method triggers [flambda2] Invalid code and SIGABRT on arm64. -Oclassic compiles correctly; -g works around the frontend bug. #7921

  • Atomic.compare_and_set returns success after a failed CAS (open, by alpaylan): On amd64 with -O3, a second compare_and_set with the same expected value succeeds where it must fail. -Oclassic and bytecode produce correct results. #7889

  • caml_int128_add / caml_int128_sub wrong high word (reported, by alpaylan): On amd64 with -O3, the 128-bit add/sub builtins return an incorrect high word when the low half of x equals the high half of y. -Oclassic is correct. #7888

  • -fno-avx crashes on float32 Bigarray store (reported, by alpaylan): ocamlopt -fno-avx raises Not_found when storing to a float32 Bigarray element. -Oclassic -fno-avx and -fno-avx -regalloc ls compile correctly. #7919

  • Bytecode Effect.perform segfaults with memprof callback (open, by alpaylan): A Gc.Memprof alloc callback that grows the fiber stack causes ocamlrun to segfault during Effect.perform. Native compilation is unaffected. #7918