Gabriel Scherer
638a953bcf
Sys: Use constant for some runtime limitations.
...
It allows to have non-standard limits for non-standard runtime.
ie: js_of_ocaml use 32bits integer, and can handle
string much bigger than 16Mo.
From: Hugo Heuzard <hugo.heuzard@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15588 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 12:19:27 +00:00
Gabriel Scherer
e65b8d2319
bootstrap
...
From: Gabriel Scherer <gabriel.scherer@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15587 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 12:19:22 +00:00
Gabriel Scherer
7fa3f30114
update magic numbers
...
Numbers and .mlbuild and .mlp were not always synchronized; I only
changed the typedtree-related numbers, but used the max of both +1 on
both sides -- the .cm{o,a,x}... numbers are still non-synchronized.
From: Gabriel Scherer <gabriel.scherer@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15586 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 12:19:17 +00:00
Gabriel Scherer
7f5d60adba
Add translprim testsuite
...
From: Frederic Bour <frederic.bour@lakaban.net>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15585 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 12:05:35 +00:00
Gabriel Scherer
a0f1d3e171
testsuite/makefiles: a more robust -dlambda test
...
From: Gabriel Scherer <gabriel.scherer@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15584 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 12:05:33 +00:00
Gabriel Scherer
a9b0358f8c
Translcore.transl_primitive: enable type-directed optimizations
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15583 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 12:04:32 +00:00
Gabriel Scherer
7bacc5beb4
Typedtree: add type information to primitive coercions
...
This will enable type-directed optimizations during translation of
module coercions.
WARNING: this breaks Typedtree representation, magic number will have to
be adjusted.
From: Frederic Bour <frederic.bour@lakaban.net>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15582 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 11:55:24 +00:00
Gabriel Scherer
42b215c79e
Printlambda: print array kind with array primitives
...
From: Frederic Bour <frederic.bour@lakaban.net>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15581 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-17 11:53:53 +00:00
Gabriel Scherer
eece1bbe45
Add punning for object copying expressions.
...
From: Jeremy Yallop <yallop@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15580 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-16 17:52:26 +00:00
Gabriel Scherer
8591c2532e
missing @since on List.sort_uniq
...
From: Simon Cruanes <simon.cruanes.2007@m4x.org>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15579 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-16 17:39:50 +00:00
Gabriel Scherer
a699625e78
fix for ocamlbuild on cygwin cannot find ocamlfind
...
ocamlbuild should append .exe extension to filename when looking for
executables and Sys.cygiwn is set (not only Sys.win32).
From: algoriddle <szilvasy@gmail.com>
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15577 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-16 17:37:25 +00:00
Jacques Garrigue
dcb6a4dd7e
tentative fix of PR#6651
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15576 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-12 11:59:23 +00:00
Jacques Garrigue
88fadf06bc
add repro case for PR#51
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15575 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-12 09:14:14 +00:00
Jacques Garrigue
18ed39fb36
Fix PR#6650: Cty_constr not handled correctly by Subst
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15574 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-10 09:43:30 +00:00
Jacques Garrigue
5adbb67a45
PR#6648: show_module should indicate its elision (add Osig_ellipsis to outcometree)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15573 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-10 09:09:23 +00:00
Luc Maranget
4fdd5dd354
Oups.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15571 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-07 15:29:48 +00:00
Luc Maranget
3bded3f977
Solve PR#6646, ie avoid introducing huge jump summaries
...
and unshared default clauses in the presence of many (>= 32) non-matched
constructors.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15570 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-11-07 14:13:53 +00:00
Damien Doligez
94dfb61c09
fix a bug where the .annot files were truncated because of a missing "close"
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15565 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-29 21:18:14 +00:00
Damien Doligez
abcd4e8f90
PR#6628: Configure script rejects legitimate arguments
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15562 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-29 16:29:18 +00:00
Jérémie Dimino
98e0051f5c
PR#6619: update documentation of Printexc.set_uncaught_exception_handler
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15560 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-20 13:15:33 +00:00
Jacques Garrigue
792c92d1a0
Fix PR#6615: inconsistent printing and parsing of inline records
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15559 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-17 01:48:12 +00:00
Damien Doligez
031cffd155
merge branch 4.02 from release 4.02.0 to release 4.02.1
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15558 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-15 13:34:58 +00:00
Alain Frisch
e3ad818fb5
Reintegrate-merge constructors_with_record5 branch.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15556 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:51:30 +00:00
Alain Frisch
ba1f91352e
Sync.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15555 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:40:09 +00:00
Alain Frisch
5a8fd350ca
Minimal support for inlined records for the texi backend.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15554 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:35:31 +00:00
Alain Frisch
c5ef8ad49d
Minimal support for inlined records for the man backend.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:34:22 +00:00
Alain Frisch
6513ec9dd8
Minimal support for inlined records (displayed as {...}) for the latex backend.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15552 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:32:14 +00:00
Alain Frisch
ba91d29558
Some minimal support for inline records in the html backend.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15551 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:27:42 +00:00
Alain Frisch
bd618eef58
Plumbing into ocamldoc. Annotations are still not collected in inlined records, and all backends fail on inline records.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15550 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 15:03:41 +00:00
Alain Frisch
65d07466f9
Bug fix.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15549 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 14:19:05 +00:00
Alain Frisch
2ef9c9f592
Accept changes.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15548 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 13:18:06 +00:00
Alain Frisch
ebe39fb4e8
Empty ident is not allowed.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 13:17:22 +00:00
Alain Frisch
a8fc270033
Name of exceptions can no longer be duplicated.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15543 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 12:46:22 +00:00
Alain Frisch
1f8861d87e
Cleanup.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15539 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 10:32:45 +00:00
Alain Frisch
303b24e093
Sync with trunk.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15538 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 10:18:33 +00:00
Alain Frisch
d5e19a5d5c
Error message.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15537 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 08:24:40 +00:00
Alain Frisch
99c29b3b67
Adapt test.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15536 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 08:23:20 +00:00
Alain Frisch
f6440b2760
Adapt test.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15535 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-14 08:21:50 +00:00
Xavier Leroy
a4e637ea62
Reflecting commit 15498 on version/4.02:
...
PR#6588 part 2: for ARMv4 and ARMv5, make sure architectural constraints
on the "smull" instruction are respected. (Patch by Mark Shinwell.)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15531 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-13 09:07:29 +00:00
Xavier Leroy
c0b1ae096e
Reflecting commit 15497 on version/4.02:
...
PR#6588 part 1: wrong "parallel move" code generated for CSE of operators
that have multiple results.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15530 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-13 09:06:01 +00:00
Alain Frisch
56782ae7bc
#6609 : export Toploop.phrase.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15528 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-13 07:17:10 +00:00
Alain Frisch
42af6a461a
Drop support for self-recursive reference to inlined record types. Improve error message.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15527 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 15:19:05 +00:00
Alain Frisch
026062c4e2
Remove support for record types in the printer (will be printed without the ! if they ever appear in error messages).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15526 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:52:23 +00:00
Alain Frisch
bae09b365d
Remove syntax for inlined record types.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15525 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:50:46 +00:00
Alain Frisch
88fd20f565
Stop keeping manifest types on inlined records; always use free variables (ordering doesn't matter); re-enable GADT constructors.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15524 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:47:03 +00:00
Alain Frisch
aa77009fea
Fix.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15523 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:29:36 +00:00
Alain Frisch
eeac41ea2c
Rename allow_recarg to recarg.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15522 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:23:15 +00:00
Alain Frisch
a615c35a3f
Cleanup.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15521 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:20:46 +00:00
Alain Frisch
d23c8cf3f8
Better errors.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15519 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 14:19:05 +00:00
Alain Frisch
ff44d01acf
allow_recarg is now interpreted in a strict way for Pexp_ident expression (if true, the variable must be bound to a record argument).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/constructors_with_record5@15518 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-10-10 13:46:11 +00:00