Commit Graph

20045 Commits (f52fdc2068204da5d78678b02ee0ac2444b6f8c1)

Author SHA1 Message Date
David Allsopp 7e53562630
Merge pull request #9479 from dra27/faster-appveyor
AppVeyor speed-ups take 2
2020-04-20 10:03:24 +01:00
David Allsopp 4603c64765
Merge pull request #9478 from ocaml/revert-9454-faster-appveyor
Revert "AppVeyor speed-ups"
2020-04-20 09:56:12 +01:00
David Allsopp 67c011b883
Revert "AppVeyor speed-ups" 2020-04-20 09:55:54 +01:00
David Allsopp c97b73c056
Merge pull request #9454 from dra27/faster-appveyor
AppVeyor speed-ups
2020-04-20 09:53:51 +01:00
Florian Angeletti c041b0389e env summary: don't record implicit cmi files
We don't want to record the state of the file system at the start
of the compilation in the compiled files.
Consequently, we only add persistent modules to the env summary
if they have an observable action on the initial environment.
This is only the case if they shadow a non-persistent module of the
initially opened library (which can only be Stdlib currently).
2020-04-20 10:13:20 +02:00
Nicolás Ojeda Bär 91bbdac1f5
Fix asmcomp unit name test for bsd (#9473) 2020-04-19 17:53:57 +02:00
Nicolás Ojeda Bär ec6690fb53
x86 asm: handle unit names with special characters (#9465) 2020-04-19 11:17:00 +02:00
Thomas Refis 0d92d18e61
Merge pull request #9411 from trefis/type_args-merge-sargs
forbid optional arguments reordering with -nolabels
2020-04-18 13:01:51 +02:00
Gabriel Scherer 5c0e138bb4 Changes entry 2020-04-18 11:43:09 +02:00
Vincent Laviron 8f006a366b Fix Cmm type of unboxed Int64 values in Clet_mut 2020-04-18 11:39:25 +02:00
Gabriel Scherer 5722f78e31 add a regression test for issue 9460
See <https://github.com/ocaml/ocaml/issues/9460>.
We currently expect this test to fail on 32bit systems, and succeed on 64bits systems.

Contributed by Richard Jones.
2020-04-18 11:39:25 +02:00
Xavier Leroy da12974492
Turn off PIE for musl-based Linux on platforms other than amd64 and s390x (#9456)
Alpine Linux and perhaps other musl-based Linux distributions produce
position-independent executables (PIEs) by default.  If non-PIC object
files are given to the linker, it silently produces a wrong executable
that crashes when run.  This is the case for ocamlopt-generated code,
which by default is not PIC except on amd64 (x86_64) and s390x (Z systems).

Closes: #7562
2020-04-18 11:16:23 +02:00
Thomas Refis a321395fca Further Changes 2020-04-18 11:09:32 +02:00
Thomas Refis e01966a8b1 illegal commutation: more information in error message 2020-04-18 11:09:32 +02:00
Thomas Refis 384aa215fa optional arguments eliminated only when followed by unlabelled argument 2020-04-18 11:09:32 +02:00
Gabriel Scherer 537e395cc0 matching: pass explicit arity to Default_environment.specialize 2020-04-18 11:08:12 +02:00
Gabriel Scherer 3306f4a1e4 parmatch: Pattern_head.arity 2020-04-18 11:08:12 +02:00
Thomas Refis 73a3f9083e Changes 2020-04-18 11:02:09 +02:00
Thomas Refis ed654dc98f type_application: better variable name 2020-04-18 11:01:52 +02:00
Thomas Refis 1294b28578 Typeclass.type_args rewrite in the same way 2020-04-18 11:01:52 +02:00
Thomas Refis 22657fa622 type_application: better names, some more comments 2020-04-18 11:01:52 +02:00
Thomas Refis 02a7388602 type_application: implement ignored and omitted in the same way 2020-04-18 11:01:52 +02:00
Thomas Refis 21656b259c inline type_unknown_args 2020-04-18 11:01:52 +02:00
Thomas Refis 5e78b177b8 type_unknown_args is a fold 2020-04-18 11:01:52 +02:00
Thomas Refis f444ecde29 type_application: primitives inspection helper 2020-04-18 11:01:52 +02:00
Thomas Refis 9632e02d6a type_args: some comments (and formatting noise) 2020-04-18 11:01:52 +02:00
Thomas Refis 0deda5100c type_args: remove ty_old
This was useful when commuting optional arguments was allowed with
`ignore_labels = true`. Which it isn't anymore.
2020-04-18 11:01:52 +02:00
Thomas Refis 9e0515f554 type_args: forbid optional arguments commuting when [ignore_labels=true] 2020-04-18 11:01:52 +02:00
Thomas Refis aa5c1d37f6 typeclass: further simplification as suggested by reviewer 2020-04-18 11:01:52 +02:00
Thomas Refis b703371d7d extract_label: return an option instead of raising 2020-04-18 11:01:52 +02:00
Thomas Refis 6d43867011 apply the same treatment to Pcl_apply 2020-04-18 11:01:52 +02:00
Thomas Refis 2b1e211df9 type_application: merge sargs and more_sargs 2020-04-18 11:01:52 +02:00
Thomas Refis 046da6cd2e testsuite: -nolabels, commutes now, might get eliminated later 2020-04-18 11:01:52 +02:00
Thomas Refis 245a071938 testsuite: -nolabels and commuting optional arguments 2020-04-18 11:01:52 +02:00
Leo White a40889d6d9
Merge pull request #9393 from lpw25/improve-recmodule-usage-warnings
Improve recursive module usage warnings
2020-04-18 09:11:22 +01:00
Leo White a8987e7a4f
Merge pull request #9388 from lpw25/no-siglocal-type-constraints
Prohibit signature local types with constraints
2020-04-18 09:10:13 +01:00
Leo White 2c8f99e0ba Add Changes entry 2020-04-18 08:10:52 +01:00
Leo White 5f16c55316 Improve usage warnings for recursive modules 2020-04-18 08:08:54 +01:00
Leo White dd8218f8aa Add test for usage warnings of recursive modules 2020-04-18 08:08:54 +01:00
Leo White eac7fc52df
Merge pull request #9387 from lpw25/more-robust-type-function-subst
Make substitution of type functions more robust
2020-04-18 08:02:47 +01:00
Leo White 80324bae54 Make substitution of type functions more robust 2020-04-18 08:02:02 +01:00
Leo White 6dcb77077a Add Changes entry 2020-04-18 07:56:44 +01:00
Leo White 8dcdda9674 Prohibit signature local types with constraints 2020-04-18 07:54:12 +01:00
Leo White 17257491b8 Add regression test 2020-04-18 07:54:12 +01:00
Leo White adc354c167
Merge pull request #9452 from lpw25/add-locations-to-docstring-attributes
Add locations to docstring attributes
2020-04-17 22:30:36 +01:00
Gabriel Scherer a30e621190 toplevels: label the wrap_mod argument 2020-04-17 19:30:07 +02:00
David Allsopp 221fee0d85 Fix the native toplevel too... 2020-04-17 16:54:37 +01:00
David Allsopp b14539572a s/wrap_mode/wrap_mod/ 2020-04-17 16:48:56 +01:00
David Allsopp 528bd78c25 Add a test for #mod_use 2020-04-17 16:28:20 +01:00
David Allsopp 5abff44a3f Fix #mod_use in toplevel
Regression from #9283.

Fixes #9455
2020-04-17 16:14:01 +01:00