Commit Graph

574 Commits (ef2cdbe1e7f7ccb2cdf74fa5a1eeb70cd14673e9)

Author SHA1 Message Date
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
Mark Shinwell ca039d77fb Merge pull request #357 from mshinwell/flambda_prereq-misc-list
GPR#357: Add various utility functions in Misc
2016-01-12 14:17:55 +01:00
Mark Shinwell 8eedd58e05 Lesser 2016-01-12 14:14:37 +01:00
Mark Shinwell bc02894a0f Copyright headers, minor tidying 2016-01-12 14:14:37 +01:00
Mark Shinwell bf22a9a524 fixes 2016-01-12 14:14:37 +01:00
Mark Shinwell 9c8330a52f tidying 2016-01-12 14:14:37 +01:00
Mark Shinwell 8d41337993 add SCC code 2016-01-12 14:14:37 +01:00
Damien Doligez 80c674b0c1 make the list functions tail-rec and improve documentation comments 2016-01-12 14:09:03 +01:00
Mark Shinwell 28994d76df Use stdlib Map.union 2016-01-12 13:50:47 +01:00
Mark Shinwell 895f853ada Use stdlib Map.union 2016-01-12 13:49:41 +01:00
Mark Shinwell f9a3d0d9c1 merge with trunk 2016-01-12 13:48:39 +01:00
Mark Shinwell bfdb3c3a82 Copyright headers 2016-01-12 13:32:04 +01:00