Skip to content

Commit e244885

Browse files
committed
Merge tag 5.2.0
2 parents 2167f86 + 74a76cc commit e244885

File tree

1,335 files changed

+116869
-18434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,335 files changed

+116869
-18434
lines changed

.depend

Lines changed: 2883 additions & 17 deletions
Large diffs are not rendered by default.

.depend.menhir

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<<<<<<< HEAD
12
parsing/parser.cmo : \
23
parsing/syntaxerr.cmi \
34
parsing/parsetree.cmi \
@@ -9,7 +10,24 @@ parsing/parser.cmo : \
910
parsing/builtin_attributes.cmi \
1011
parsing/asttypes.cmi \
1112
parsing/ast_helper.cmi \
13+
||||||| 121bedcfd2
14+
parsing/parser.cmo : parsing/syntaxerr.cmi parsing/parsetree.cmi \
15+
parsing/longident.cmi parsing/location.cmi parsing/docstrings.cmi \
16+
utils/clflags.cmi parsing/asttypes.cmi parsing/ast_helper.cmi \
17+
=======
18+
parsing/parser.cmo : \
19+
parsing/syntaxerr.cmi \
20+
parsing/parsetree.cmi \
21+
parsing/longident.cmi \
22+
parsing/location.cmi \
23+
parsing/docstrings.cmi \
24+
utils/clflags.cmi \
25+
parsing/builtin_attributes.cmi \
26+
parsing/asttypes.cmi \
27+
parsing/ast_helper.cmi \
28+
>>>>>>> 5.2.0
1229
parsing/parser.cmi
30+
<<<<<<< HEAD
1331
parsing/parser.cmx : \
1432
parsing/syntaxerr.cmx \
1533
parsing/parsetree.cmi \
@@ -21,10 +39,32 @@ parsing/parser.cmx : \
2139
parsing/builtin_attributes.cmx \
2240
parsing/asttypes.cmi \
2341
parsing/ast_helper.cmx \
42+
||||||| 121bedcfd2
43+
parsing/parser.cmx : parsing/syntaxerr.cmx parsing/parsetree.cmi \
44+
parsing/longident.cmx parsing/location.cmx parsing/docstrings.cmx \
45+
utils/clflags.cmx parsing/asttypes.cmi parsing/ast_helper.cmx \
46+
=======
47+
parsing/parser.cmx : \
48+
parsing/syntaxerr.cmx \
49+
parsing/parsetree.cmi \
50+
parsing/longident.cmx \
51+
parsing/location.cmx \
52+
parsing/docstrings.cmx \
53+
utils/clflags.cmx \
54+
parsing/builtin_attributes.cmx \
55+
parsing/asttypes.cmi \
56+
parsing/ast_helper.cmx \
57+
>>>>>>> 5.2.0
2458
parsing/parser.cmi
2559
parsing/parser.cmi : \
2660
parsing/parsetree.cmi \
2761
parsing/longident.cmi \
2862
parsing/location.cmi \
2963
parsing/docstrings.cmi
64+
<<<<<<< HEAD
3065
parsing/parser.ml parsing/parser.mli: parsing/ast_helper.cmi parsing/asttypes.cmi parsing/builtin_attributes.cmi utils/clflags.cmi parsing/docstrings.cmi parsing/jane_syntax.cmi parsing/location.cmi parsing/longident.cmi parsing/parsetree.cmi parsing/syntaxerr.cmi
66+
||||||| 121bedcfd2
67+
parsing/parser.ml parsing/parser.mli: parsing/ast_helper.cmi parsing/asttypes.cmi utils/clflags.cmi parsing/docstrings.cmi parsing/location.cmi parsing/longident.cmi parsing/parsetree.cmi parsing/syntaxerr.cmi
68+
=======
69+
parsing/parser.ml parsing/parser.mli: parsing/ast_helper.cmi parsing/asttypes.cmi parsing/builtin_attributes.cmi utils/clflags.cmi parsing/docstrings.cmi parsing/location.cmi parsing/longident.cmi parsing/parsetree.cmi parsing/syntaxerr.cmi
70+
>>>>>>> 5.2.0

.gitattributes

Lines changed: 45 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
# Binary files
2323
/boot/ocamlc binary
2424
/boot/ocamllex binary
25-
/boot/ocamldep binary
2625
*.gif binary
2726
*.png binary
2827
*.tfm binary
@@ -63,10 +62,8 @@ META.in typo.missing-header
6362
/CONTRIBUTING.md typo.non-ascii=may
6463
/README.adoc typo.non-ascii=may
6564
/README.win32.adoc typo.non-ascii=may
66-
/.merlin typo.missing-header
6765
/Changes typo.utf8 typo.missing-header
6866
/release-info/News typo.utf8 typo.missing-header
69-
/INSTALL typo.missing-header
7067
/LICENSE typo.very-long-line typo.missing-header
7168
# tools/ci/appveyor/appveyor_build.cmd only has missing-header because
7269
# dra27 too lazy to update check-typo to interpret Cmd-style comments!
@@ -97,11 +94,6 @@ configure typo.prune
9794

9895
ocaml-variants.opam typo.prune
9996

100-
emacs/*.el typo.long-line=may
101-
emacs/caml.el typo.long-line=may typo.missing-header
102-
emacs/COPYING typo.prune
103-
emacs/ocamltags.in typo.non-printing
104-
10597
ocamldoc/** typo.long-line=may
10698
ocamldoc/Changes.txt typo.missing-header
10799
ocamldoc/ocamldoc.sty typo.missing-header
@@ -116,7 +108,7 @@ runtime/sak.c typo.non-ascii
116108
stdlib/hashbang typo.white-at-eol typo.missing-lf
117109

118110
testsuite/tests/** typo.missing-header typo.long-line=may
119-
testsuite/tests/lib-bigarray-2/bigarrf.f typo.tab
111+
testsuite/tests/lib-bigarray-2/bigarrf.f typo.tab linguist-language=Fortran
120112
testsuite/tests/lib-unix/win-stat/fakeclock.c typo.missing-header=false
121113
testsuite/tests/misc-unsafe/almabench.ml typo.long-line
122114
testsuite/tests/tool-toplevel/strings.ml typo.utf8
@@ -125,8 +117,8 @@ testsuite/tests/asmgen/immediates.cmm typo.very-long-line
125117
testsuite/tests/generated-parse-errors/errors.* typo.very-long-line
126118
testsuite/tools/*.S typo.missing-header
127119
testsuite/tools/*.asm typo.missing-header
128-
testsuite/typing typo.missing-header
129120
testsuite/tests/messages/highlight_tabs.ml typo.tab
121+
testsuite/tests/tool-toplevel/multi_phrase_line.ml typo.very-long-line
130122

131123
# prune testsuite reference files
132124
testsuite/tests/**/*.reference typo.prune
@@ -147,8 +139,6 @@ tools/eventlog_metadata.in typo.missing-header
147139
# TODO we should fix the long-line errors in yacc/*.c
148140
/yacc/*.[ch] typo.very-long-line=may
149141

150-
menhir-bench.bash typo.missing-header typo.utf8
151-
152142
# bootstrap files produced by Menhir
153143
/boot/menhir/** typo.long-line=may typo.very-long-line=may
154144
/boot/menhir/** typo.missing-header=may
@@ -159,49 +149,73 @@ menhir-bench.bash typo.missing-header typo.utf8
159149
*.sh text eol=lf
160150
*.sh.in text eol=lf
161151
*.awk text eol=lf
162-
*.m4 text eol=lf
152+
*.m4 text eol=lf linguist-language=M4Sugar
163153

164154
# ocamltest hooks which are used in the testsuite
165155
*.check-program-output text eol=lf
166156
*.run text eol=lf
167157

168158
/tools/ci/appveyor/appveyor_build.cmd text eol=crlf
169159

170-
aclocal.m4 typo.tab
160+
Makefile* linguist-language=Makefile
161+
*.c linguist-language=C
162+
*.h linguist-language=C
163+
*.h.in linguist-language=C
164+
*.hva linguist-language=TeX
165+
*.ml linguist-language=OCaml
166+
*.ml? linguist-language=OCaml
167+
*.mld linguist-documentation
168+
*.ml*.in linguist-language=OCaml
169+
*.tbl linguist-language=C
170+
171+
aclocal.m4 typo.tab -linguist-vendored linguist-language=M4Sugar
171172
configure.ac text eol=lf
172-
build-aux/compile text eol=lf
173-
build-aux/config.guess text eol=lf
174-
build-aux/config.sub text eol=lf
175-
build-aux/install text eol=lf
176-
build-aux/missing text eol=lf
177-
ocamldoc/remove_DEBUG text eol=lf
178-
ocamltest/getocamloptdefaultflags text eol=lf
179-
ocamltest/ocamltest.org typo.long-line=may typo.missing-header
173+
# These scripts are all parts of autoconf and are tagged linguist-generated
174+
# to suppress inclusion in PR diffs.
175+
build-aux/compile linguist-generated text eol=lf
176+
build-aux/config.guess linguist-generated text eol=lf
177+
build-aux/config.sub linguist-generated text eol=lf
178+
build-aux/install-sh linguist-generated text eol=lf
179+
build-aux/ltmain.sh linguist-generated text eol=lf
180+
build-aux/missing linguist-generated text eol=lf
181+
build-aux/*.m4 linguist-vendored
182+
build-aux/ocaml_version.m4 -linguist-vendored linguist-language=M4Sugar
183+
ocamltest/OCAMLTEST.org typo.long-line=may typo.missing-header
180184
stdlib/Compflags text eol=lf
181-
stdlib/sharpbang text eol=lf
185+
stdlib/hashbang -text
182186
tools/autogen text eol=lf
183-
tools/ci/inria/remove-sinh-primitive.patch text eol=lf
187+
tools/bump-magic-numbers eol=lf typo.long-line
188+
tools/ci/inria/bootstrap/remove-sinh-primitive.patch -text
189+
tools/ci/inria/bootstrap/script text eol=lf
190+
tools/ci/inria/dune-build/script text eol=lf
191+
tools/ci/inria/launch text eol=lf
192+
tools/ci/inria/light text eol=lf
193+
tools/ci/inria/main text eol=lf
194+
tools/ci/inria/other-configs/script text eol=lf
195+
tools/ci/inria/sanitizers/script text eol=lf
196+
tools/ci/inria/step-by-step-build/script text eol=lf
184197
tools/check-typo text eol=lf
185198
tools/check-symbol-names text eol=lf
186-
tools/ci-build text eol=lf
187199
tools/msvs-promote-path text eol=lf
188-
tools/gdb-macros text eol=lf
200+
tools/gdb-macros text eol=lf linguist-language=GDB
189201
tools/magic text eol=lf
190-
tools/make-opcodes text eol=lf
191-
tools/make-package-macosx text eol=lf
192-
tools/ocaml-objcopy-macosx text eol=lf
193202
tools/ocamlsize text eol=lf
194203
tools/pre-commit-githook text eol=lf
204+
<<<<<<< HEAD
205+
tools/markdown-add-pr-links.sh text eol=lf
206+
runtime/caml/sizeclasses.h typo.missing-header
207+
||||||| 121bedcfd2
195208
tools/markdown-add-pr-links.sh text eol=lf
209+
runtime/caml/sizeclasses.h typo.missing-header typo.white-at-eol
210+
=======
196211
runtime/caml/sizeclasses.h typo.missing-header
212+
>>>>>>> 5.2.0
197213

198214
# Tests which include references spanning multiple lines fail with \r\n
199215
# endings, so use \n endings only, even on Windows.
200-
testsuite/tests/backtrace/names.ml text eol=lf
201216
testsuite/tests/basic-modules/anonymous.ml text eol=lf
202217
testsuite/tests/formatting/test_locations.ml text eol=lf
203218
testsuite/tests/functors/functors.ml text eol=lf
204-
testsuite/tests/lib-dynlink-initializers/test10_main.ml text eol=lf
205219
testsuite/tests/parsing/attributes.ml text eol=lf
206220
testsuite/tests/parsing/extensions.ml text eol=lf
207221
testsuite/tests/parsing/hash_ambiguity.ml text eol=lf

.github/workflows/build.yml

Lines changed: 90 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
'${{ github.event.repository.full_name }}'
9696
- name: Configure tree
9797
run: |
98-
MAKE_ARG=-j XARCH=x64 CONFIG_ARG='--enable-flambda --enable-cmm-invariants --enable-dependency-generation --enable-native-toplevel' OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh configure
98+
MAKE_ARG=-j CONFIG_ARG='--enable-flambda --enable-cmm-invariants --enable-dependency-generation --enable-native-toplevel' OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh configure
9999
- name: Build
100100
run: |
101101
MAKE_ARG=-j bash -xe tools/ci/actions/runner.sh build
@@ -109,10 +109,30 @@ jobs:
109109
retention-days: 1
110110

111111
# Full testsuite run, and other sanity checks
112+
# "extra" testsuite runs, reusing the previously built compiler tree.
113+
# debug: running the full testsuite with the
114+
# debug runtime and minor heap verification.
115+
# debug-s4096: select testsuite run with the debug runtime and a small
116+
# minor heap.
112117
normal:
118+
name: ${{ matrix.name }}
113119
needs: build
114120
runs-on: ubuntu-latest
121+
<<<<<<< HEAD
115122
>>>>>>> ocaml/5.1
123+
||||||| 121bedcfd2
124+
=======
125+
strategy:
126+
matrix:
127+
include:
128+
- id: normal
129+
name: normal
130+
dependencies: texlive-latex-extra texlive-fonts-recommended hevea sass
131+
- id: debug
132+
name: extra (debug)
133+
- id: debug-s4096
134+
name: extra (debug-s4096)
135+
>>>>>>> 5.2.0
116136
steps:
117137
<<<<<<< HEAD
118138
- name: Install GNU parallel
@@ -279,22 +299,43 @@ jobs:
279299
tar --zstd -xf sources.tar.zstd
280300
rm -f sources.tar.zstd
281301
- name: Packages
302+
if: matrix.dependencies != ''
282303
run: |
283-
sudo apt-get update -y && sudo apt-get install -y texlive-latex-extra texlive-fonts-recommended hevea sass
304+
sudo apt-get update -y && sudo apt-get install -y ${{ matrix.dependencies }}
284305
- name: Run the testsuite
306+
if: matrix.id == 'normal'
285307
run: |
286308
MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh test
309+
- name: Run the testsuite (debug runtime)
310+
if: matrix.id == 'debug'
311+
env:
312+
OCAMLRUNPARAM: v=0,V=1
313+
USE_RUNTIME: d
314+
run: |
315+
bash -cxe "SHOW_TIMINGS=1 tools/ci/actions/runner.sh test"
316+
- name: Run the testsuite (s=4096, debug runtime)
317+
if: matrix.id == 'debug-s4096'
318+
env:
319+
OCAMLRUNPARAM: s=4096,v=0
320+
USE_RUNTIME: d
321+
run: |
322+
for dir in $PARALLEL_TESTS; do \
323+
bash -cxe "SHOW_TIMINGS=1 tools/ci/actions/runner.sh test_prefix $dir"; \
324+
done
287325
- name: Build API Documentation
326+
if: matrix.id == 'normal'
288327
run: |
289328
MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh api-docs
290329
- name: Install
330+
if: matrix.id == 'normal'
291331
run: |
292332
MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh install
293333
- name: Build the manual
334+
if: matrix.id == 'normal' && needs.build.outputs.manual_changed == 'true'
294335
run: |
295336
MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh manual
296-
if: needs.build.outputs.manual_changed == 'true'
297337
- name: Other checks
338+
if: matrix.id == 'normal'
298339
run: |
299340
MAKE_ARG=-j OCAMLRUNPARAM=b,v=0 bash -xe tools/ci/actions/runner.sh other-checks
300341
@@ -320,7 +361,7 @@ jobs:
320361
run: brew install parallel
321362
- name: configure tree
322363
run: |
323-
CONFIG_ARG=${{ matrix.config_arg }} MAKE_ARG=-j XARCH=x64 bash -xe tools/ci/actions/runner.sh configure
364+
CONFIG_ARG='${{ matrix.config_arg }}' MAKE_ARG=-j bash -xe tools/ci/actions/runner.sh configure
324365
- name: Build
325366
run: |
326367
MAKE_ARG=-j bash -xe tools/ci/actions/runner.sh build
@@ -341,7 +382,7 @@ jobs:
341382
i386:
342383
runs-on: ubuntu-latest
343384
container:
344-
image: i386/ubuntu:18.04
385+
image: debian:12
345386
options: --platform linux/i386 --user root
346387
steps:
347388
- name: OS Dependencies
@@ -353,13 +394,14 @@ jobs:
353394
uses: actions/checkout@v1
354395
- name: configure tree
355396
run: |
356-
MAKE_ARG=-j XARCH=i386 bash -xe tools/ci/actions/runner.sh configure
397+
MAKE_ARG=-j bash -xe tools/ci/actions/runner.sh configure
357398
- name: Build
358399
run: |
359400
MAKE_ARG=-j bash -xe tools/ci/actions/runner.sh build
360401
- name: Run the testsuite
361402
run: |
362403
bash -xe tools/ci/actions/runner.sh test
404+
<<<<<<< HEAD
363405

364406
# "extra" testsuite runs, reusing the previously built compiler tree.
365407
# debug: running the full testsuite with the
@@ -400,3 +442,45 @@ jobs:
400442
bash -cxe "SHOW_TIMINGS=1 tools/ci/actions/runner.sh test_prefix $dir"; \
401443
done
402444
>>>>>>> ocaml/5.1
445+
||||||| 121bedcfd2
446+
447+
# "extra" testsuite runs, reusing the previously built compiler tree.
448+
# debug: running the full testsuite with the
449+
# debug runtime and minor heap verification.
450+
# debug-s4086: select testsuite run with the debug runtime and a small
451+
# minor heap.
452+
extra:
453+
needs: build
454+
runs-on: ubuntu-latest
455+
strategy:
456+
matrix:
457+
id:
458+
- debug
459+
- debug-s4096
460+
steps:
461+
- name: Download artifact
462+
uses: actions/download-artifact@v2
463+
with:
464+
name: compiler
465+
- name: Unpack Artifact
466+
run: |
467+
tar --zstd -xf sources.tar.zstd
468+
rm -f sources.tar.zstd
469+
- name: Run the testsuite (debug runtime)
470+
if: ${{ matrix.id == 'debug' }}
471+
env:
472+
OCAMLRUNPARAM: v=0,V=1
473+
USE_RUNTIME: d
474+
run: |
475+
bash -cxe "SHOW_TIMINGS=1 tools/ci/actions/runner.sh test"
476+
- name: Run the testsuite (s=4096, debug runtime)
477+
if: ${{ matrix.id == 'debug-s4096' }}
478+
env:
479+
OCAMLRUNPARAM: s=4096,v=0
480+
USE_RUNTIME: d
481+
run: |
482+
for dir in $PARALLEL_TESTS; do \
483+
bash -cxe "SHOW_TIMINGS=1 tools/ci/actions/runner.sh test_prefix $dir"; \
484+
done
485+
=======
486+
>>>>>>> 5.2.0

.github/workflows/stale.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ jobs:
99
permissions:
1010
issues: write
1111
steps:
12-
- uses: actions/stale@v3
12+
- uses: actions/stale@v8
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
stale-issue-message: 'This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.'
1616
days-before-stale: 366
1717
days-before-close: 30
18+
exempt-issue-labels: 'bug'

0 commit comments

Comments
 (0)