Commit Graph

585 Commits (e85ba9c77f680ab574b0836830554c2b4b74091a)

Author SHA1 Message Date
Sébastien Hinderer 3bbf34319e Add the -no-version option to the toplevel.
This option requests the toplevel not to print its version number
at startup.
2016-05-09 17:22:29 +02:00
Gabriel Scherer db1e523119 warning 52: change wording (Jacques Garrigue and Mark Shinwell) 2016-05-06 11:51:32 -04:00
Gabriel Scherer 542fcdea6e PR#7139: clearer formulation of warning on unused exceptions 2016-05-02 14:37:39 -04:00
Gabriel Scherer 3c21268ced PR#7239: clarify Warning 42 (Disambiguated constructor or label name) 2016-04-25 18:34:54 -04:00
Gabriel Scherer 8de9e081d4 Consistent name for Warning 52: Ambiguous or-pattern variables under guard 2016-04-19 12:15:14 -04:00
Gabriel Scherer 62f0f5095c Warning reference: document warning 52, fragile literal pattern 2016-04-19 12:15:14 -04:00
octachron fba382b5a3 Documentation: refer to manual in warning 57 2016-04-19 12:15:14 -04:00
Jacques-Henri Jourdan 1915e20c5b Fix mantis PR 7168 by creating a safety margin in the bytecode stack. 2016-04-15 11:28:38 +02:00
Mark Shinwell 391d7f05a9 Fix embarrassing bug in Misc.Stdlib.String.split properly 2016-03-17 10:37:49 +00:00
Mark Shinwell 7a9f3d50da Fix embarassing bug in Misc.Stdlib.String.split 2016-03-17 10:33:31 +00:00
alainfrisch 502e4f9336 More warnings when compiling the compiler. 2016-03-15 22:46:35 +01:00
Jeremie Dimino 68feb5f286 Add Misc.delete_eol_spaces 2016-03-01 10:36:24 +00:00
Jeremie Dimino b98461c3f3 Add Misc.protect_refs 2016-03-01 10:36:24 +00:00
Mark Shinwell c3963a6619 Forgotten warning message change from pchambart's review of 4137939c 2016-02-29 11:27:00 +00:00
Mark Shinwell 5dced42768 Merge pull request #480 from mshinwell/flambda_unbox-closures
GPR#480: Flambda fix: try to make Unbox_closures behave more reasonably
2016-02-26 16:18:04 +00:00
Damien Doligez 5401ce8473 Update headers for the new license.
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez ee8f71101b clean up whitespace and cut long lines 2016-02-17 13:36:27 +01:00
Leo White 4253ed1530 Tidy up new command-line parameters 2016-02-11 16:02:02 +00:00
Mark Shinwell 4137939cd7 Make warning 59 less unhelpful (includes work by Runhang Li) 2016-02-11 14:35:18 +00:00
Mark Shinwell bde2bdd206 Reformatting only (to the standards of tools/check-typo) 2016-02-10 18:28:38 +01:00
Damien Doligez e14a01e3a3 fix missing change from 1c28b231ef 2016-02-10 13:27:20 +01:00
Damien Doligez 1c28b231ef Revert "PR#6475: accept -o in ocamlc when compiling C files"
This reverts commit 1d8e590c54.

Conflicts:
	Changes
	bytecomp/bytelink.ml
	driver/optcompile.ml
	ocamlbuild/ocaml_specific.ml
	ocamlbuild/testsuite/internal.ml
	utils/ccomp.ml
2016-02-10 10:34:02 +01:00
Mark Shinwell f95fb8bbb0 Bug fixes etc for Flambda 2016-02-09 18:38:16 +01:00
Mark Shinwell a397511031 Import latest Flambda changes 2016-02-09 09:59:26 +01:00
Mark Shinwell 9528337dff Merge pull request #244 from c-cube/margins-in-colors
GPR#244: try to print error messages with flexible margin width
2016-01-29 14:57:21 +00:00
Pierre Chambart b0b0f6609c Enable flambda 2016-01-28 15:04:47 +01:00
David Allsopp 469810f822 Normalise \r\n to \n for deprecated warnings
The formatters used for printing warnings have text mode translation
enabled which means that any Windows endings which creep into warning
texts from deprecated attributes result in \r\r\n in the output.

The effect is largely innocuous, except that it causes the
deprecated_module_use test to fail on Windows.
2016-01-18 16:40:03 +00:00
David Allsopp 9e547e67dd Normalise \r\n to \n for warnings
The formatters used for printing warnings have text mode translation
enabled which means that any Windows endings which creep into warning
texts (e.g. from attributes) result in \r\r\n in the output.

The effect is largely innocuous, except that it causes the
deprecated_module_use test to fail on Windows.
2016-01-18 16:19:08 +00:00
David Allsopp 7ae5d358c1 Tweaks to hiding the display of .c names with MSVC
1. Update FlexDLL so that ocamlc -custom no longer displays the
   intermediate C file
2. Ensure that, for example, ocamlc -c foo/bar.c doesn't display bar.c
2016-01-18 16:06:25 +00:00
alainfrisch 129df0ae09 Fix Changes file. 2016-01-18 11:11:39 +01:00
David Allsopp 124672aa13 Filter out the display of .c files by MSVC
Microsoft's C Compiler displays several lines on every invocation - most
of this is removed by specifying the /nologo command line option, but
the compiler still displays the name of every C file it compiles. The
Microsoft Macro Assembler (MASM) does the same thing, but ocamlopt by
default is able to pipe the output of that command directly to NUL, as
the assembler code should never produce errors.

The same cannot be done for invocations of the C compiler, as obviously
syntax errors must be displayed. This relative small cosmetic change
pipes the output of cl to a temporary file and filters out the first
line if it is exactly as expected. The most elegant solution would
require pipes and process handling to be merged from the Unix module
into the compilers.
2016-01-17 19:21:45 +00:00
David Allsopp fe4b643c4e Support OCAML_FLEXLINK environment variable
OCAML_FLEXLINK is inspected by ocamlopt, ocamlc and ocamlmklib and allows
the flexlink command to be overriden. This is primarily intended as a
solution for bootstrapping OCaml with FlexDLL, thus allowing a bytecode
image of flexlink launched with ocamlrun to be executed, instead of
requiring flexlink to be in PATH.
2016-01-15 17:07:11 +00:00
Pierre Chambart 92c41647a1 Merge pull request #425 from chambart/flambda_prereq-configure-option
Configure option to enable the flambda middle-end
2016-01-15 15:16:58 +01:00
Mark Shinwell 56c7413843 wrong default_inline_threshold 2016-01-15 13:29:28 +00:00
Mark Shinwell d3a8745b84 Merge remote-tracking branch 'ocaml/trunk' into flambda_prereq-clflags 2016-01-15 13:22:04 +00:00
Mark Shinwell 7d1d8814c0 code review 2016-01-14 17:13:43 +00:00
Pierre Chambart 828cb4ebb9 Add field in Config for flambda and change the cmx and cmxa magic number 2016-01-14 14:20:23 +01:00
Mark Shinwell 90e98e1544 move a line 2016-01-14 12:04:44 +00:00
Mark Shinwell cf276faedd rename 2016-01-14 12:04:13 +00:00
Mark Shinwell ceec2b9759 rename 2016-01-14 12:03:17 +00:00
Mark Shinwell 0f3c60b9ff New warning 2016-01-14 12:00:43 +00:00
Mark Shinwell 069d6a0cff copyright headers 2016-01-14 11:38:18 +00:00
Mark Shinwell 983a7e4f1b Arg_helper 2016-01-14 11:34:49 +00:00
Mark Shinwell fb4d06a3aa Clflags stuff and Arg_helper 2016-01-14 11:27:30 +00:00
octachron bf163a67e6 Documentation: missing escape characters 2016-01-13 17:48:51 +02:00
Mark Shinwell fb6cb2f56e Add Flambda_pass timing pass 2016-01-13 13:41:15 +01:00
Mark Shinwell 0ac2fc54b5 Merge pull request #369 from mshinwell/flambda_prereq-scc
GPR#369: Strongly connected components
2016-01-12 18:18:45 +01:00
Damien Doligez 355c982328 PR#6574: get better backtraces in case of compiler crash 2016-01-12 16:51:35 +01:00
Mark Shinwell b779463a07 Merge remote-tracking branch 'ocaml/trunk' into flambda_prereq-scc 2016-01-12 15:21:50 +01:00
Mark Shinwell 96287792b4 Move color_setting into Misc.Color 2016-01-12 14:35:17 +01:00