Commit Graph

16004 Commits (a5d9a704d49e9b6839ebf61b14b1ef16236d34d3)

Author SHA1 Message Date
Gabriel Scherer a5d9a704d4
Merge pull request #1574 from objmagic/objmagic/fix-make-one-parallel
Fix in testsuite: `make one DIR=` and `make parallel`
2018-01-31 11:33:03 +01:00
Sébastien Hinderer d098da9c26 ocamltest: check-typo 2018-01-31 09:14:43 +01:00
Sébastien Hinderer 8ae50ef1d6 ocamltest: introduce the ocaml_compilers module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer c0ce2cd2d9 ocamltest: introduce the ocaml_commands module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer 6f4ae1d0e8 ocamltest: introduce the ocaml_flags module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer a029ecea18 ocamltest: introduce the ocaml_directories module 2018-01-31 09:14:43 +01:00
Sébastien Hinderer a828e36d37 ocamltest: introduce the ocaml_files module 2018-01-31 09:14:43 +01:00
Pierre Chambart 3ba9315ebc Replace Parmatch.IdSet by Ident.Set 2018-01-30 19:12:29 +01:00
Pierre Chambart 6bfa23c08b Replace uses of Lambda.IdentSet by Ident.Set 2018-01-30 19:12:29 +01:00
Gabriel Scherer 103026592e
Merge pull request #1585 from alainfrisch/optim_ocamllex_ml
Optimize "ocamllex -ml"
2018-01-30 17:19:44 +01:00
alainfrisch 6043357197 Changelog. 2018-01-30 11:39:47 +01:00
alainfrisch ee400fffd8 Refactor. 2018-01-30 11:37:03 +01:00
alainfrisch cb5cd575b7 Move inlining decision to its own function. 2018-01-30 11:33:31 +01:00
alainfrisch 0f9714329d Avoid quoted strings, better indentation, limit scope of internal variables. 2018-01-30 11:22:47 +01:00
alainfrisch 7607904088 Emit indented code (patch from Frederic Bour) 2018-01-30 09:52:11 +01:00
Jacques Garrigue 54225b51c0
Fix MPR#7711 (constraint hides object fields and causes assertion) (#1581)
* fix by checking for self type in Ctype.unify3
2018-01-30 15:33:14 +09:00
Runhang Li 92332dfac0 Better changelog entry 2018-01-28 11:49:14 -08:00
Gabriel Scherer af2ad1b67b Changes entry 2018-01-28 15:46:29 +01:00
Gabriel Scherer 5130e8a3ac testsuite/Makefile: fix _ocamltest race with per-test OCAMLTESTDIR setting
When using 'make parallel', one could sometimes observe an error due
to a race condition in creating the global _ocamltest repository used
by all new-style (ocamltest) tests. This commit removes the race by
making exec-one use local _ocamltest directories, one for each test
directory (the parallelism of the 'parallel' target is at the
granularity of each test directory, not each test file, so this
is safe)

On the contrary, the global 'new' and 'new-without-report' targets
still run all test in a global BASEDIR/_ocamltest directory. This
choice was done to minimize difference in behavior for users of these
targets, but it could be revisited in the future.
2018-01-28 15:46:29 +01:00
Runhang Li 8f535f17be Fix in testsuite: `make one` and `make parallel`
The `parallel` and `one DIR=...` targets currently do not work as
inteded for tests using the new 'ocamltest' framework: `one ...` has
no effect, and `parallel` only runs on old-style tests and ignores new
tests. This commit fixes this discrepancy in behavior.
2018-01-28 15:46:08 +01:00
alainfrisch bbbfefc121 Update benchmark and results. 2018-01-26 17:00:05 +01:00
alainfrisch e47b09c685 Do not update lex_start_p/lex_curr_p when lex_curr_p == Lexing.dummy_pos.
This allows the client code to disable update of those fields, which
accounts for a significant amount of time spend in the generated code.

Perhaps this should rather be controlled more statically (to avoid a
runtime check -- but it is very cheap), by some directive in the lexer
specification itself (global, or on each rule).
2018-01-26 16:57:28 +01:00
alainfrisch 70b36a7d18 Benchmark results. 2018-01-26 16:15:49 +01:00
alainfrisch 0e67880879 Also test a simpler lexer with trivial actions. 2018-01-26 15:59:30 +01:00
alainfrisch f96d68895a Optimize output of ocamllex -ml 2018-01-26 15:42:18 +01:00
alainfrisch a27b12d819 Add benchmark for ocamllex-generated lexers. 2018-01-26 15:36:59 +01:00
Florian Angeletti 261c7144e1
Merge pull request #1545 from jfehrle/improve_doc
Improvements to OCaml manual
2018-01-25 21:56:51 +01:00
Jim Fehrle 2bd99492ec
Merge pull request #1 from Octachron/pr/1545
manual: last minute  fixes
2018-01-25 10:50:44 -08:00
Jim 52454d3742 Improve wording in several places in the OCaml manual, mostly in chapter
1.
PR#7698
2018-01-25 10:47:57 -08:00
octachron ea7410e177 manual: small fixes 2018-01-25 17:00:33 +01:00
Jim a3240212ab Improve wording in several places in the OCaml manual, mostly in chapter
1.
PR#7698
2018-01-24 10:08:30 -08:00
Gabriel Scherer e797c5f01c
Merge pull request #1577 from gasche/pattern-matching-3
parmatch.ml refactoring: make the simplify_head_pat functions more generic
2018-01-23 11:26:53 +01:00
Thomas Refis edc2eae1e8
Merge pull request #1576 from trefis/pr7712
forget_abbrev: do not assert when no abbrevs
2018-01-23 10:22:25 +00:00
Thomas Refis a4b891cc04 Changes 2018-01-23 09:20:54 +00:00
Thomas Refis 050ad579a9 pr7712: add a test 2018-01-23 09:19:15 +00:00
Thomas Refis eef45d72c3 forget_abbrev: do not assert when no abbrevs 2018-01-23 09:15:23 +00:00
Sébastien Hinderer 5614abf918 ocamltest: enhance communication with hooks
Before this commit, ocamltest hooks could modify environment when they
succeded, but they were not able to report a reason when they returned a
skip or falure result.

This commit removes this limitation. To do so, the ocamltest_env variable
has been renamed to ocamltest_response.

When the hook returns a PASS result, the content of the ${ocamltest_response}
file is interpreted as a list of environment modifiers, as was the case for the content of
${ocamltest_env} before this commit.

However, from now on, the content of ${ocamltest_response} is also read
(as a string, which is trimmed), when the hook returns a skip or
failure result.
This string should describe why the hook returned the skip or fail result.
2018-01-22 17:11:40 +01:00
Sébastien Hinderer 1ab45a2c06 ocamltest: add the OCaml-specific shared-libraries action
This action passes when support for shared libraries has been
configured. Otherwise, it skips.
2018-01-22 16:40:18 +01:00
Pierre Chambart b4db8646f4 Update Changes 2018-01-21 13:47:12 +01:00
Pierre Chambart f2ab9e299f Avoid generating initialization code for init symbol of constants 2018-01-21 13:47:12 +01:00
Gabriel Scherer 6e62b7c7d5 parmatch.ml refactoring: make the simplify_head_pat functions more generic 2018-01-19 20:42:17 +01:00
Gabriel Scherer 6a4cf6d61d
Merge pull request #1575 from dra27/docs-typo-uchar
Minor docs correction
2018-01-19 16:25:11 +01:00
David Allsopp 617c461bb1 s/an Unicode/a Unicode/ 2018-01-19 13:55:50 +00:00
Jacques Garrigue 55e6d747fd
Follow up to #1559 : have the name of unknown missing tag depend on the row (#1564)
Print `AnyOtherTag (with possible extra apostrophes to avoid conflicts) it there is a row variable,
or `<some private tag> if this is a private row.
2018-01-18 13:01:31 +09:00
Sébastien Hinderer 9a3cff31a8 Update changes 2018-01-17 16:04:10 +01:00
Sébastien Hinderer caf803f19c Migrate tests/typing-warnings tests to ocamltest 2018-01-17 12:04:42 +01:00
Sébastien Hinderer c9de090c6b Migrate tests/typing-unboxed-types test to ocamltest 2018-01-17 12:04:42 +01:00
Sébastien Hinderer ab8978858f Migrate typing-short-paths tests to ocamltest 2018-01-17 12:04:42 +01:00
Sébastien Hinderer 80ccd98268 Migrate typing-private tests to ocamltest 2018-01-17 12:04:42 +01:00
Sébastien Hinderer 3568faff63 Migrate typing-objects tests to ocamltest 2018-01-17 12:04:41 +01:00