Commit Graph

12838 Commits (c4e8117c2bf2b17e60c5d141456a3628d150513c)

Author SHA1 Message Date
alainfrisch c4e8117c2b Cleanup. 2016-03-10 15:34:48 +01:00
alainfrisch 3730cab2d1 Sort the list of input files alphabetically. 2016-03-10 15:33:36 +01:00
alainfrisch 1ef3f35c02 Print dependencies at the end.
This introduces a tiny change of behavior since command line options which affect the
printing of dependencies (-modules, -all, -ml-synonym, -mlfi-synonym) are taken into
account even for files mentioned before on the command-line.  This is probably not going to break
anything.

Note: this commit also reverse the ordering of the output, but we will normalize it in the next
commit anyway.
2016-03-10 15:33:35 +01:00
alainfrisch 2261e4413d Single entry point to print deps. 2016-03-10 15:33:34 +01:00
alainfrisch 4aea2c1903 Move dependency printing code to their own function. 2016-03-10 15:33:33 +01:00
alainfrisch a00a193e35 Cleanup. 2016-03-10 15:33:32 +01:00
Alain Frisch b9b0285333 Add non-regression test for previous commit. 2016-03-10 15:11:02 +01:00
Alain Frisch af09eacaf2 Bug fix: Hashtbl.filter_map_inplace did not correctly update the size field. 2016-03-10 15:10:47 +01:00
alainfrisch 0310ff4415 Changes. 2016-03-10 10:57:11 +01:00
David Allsopp d31773e0f4 For discussion! Enable compilation using Visual C++ 2002 & 2003
This bizarre patch results in a full test-suite pass for Visual Studio
.NET 2002 & 2003. Without it, the following code segfaults (resulting in
6 failing tests):

```ocaml
  #load "unix.cma";;
  let (ifd, _) = Unix.pipe ();;
  Unix.in_channel_of_descr ifd;;
```
2016-03-10 10:56:07 +01:00
David Allsopp 7ca7db4ef2 Fix compiler limitations in old MSVC
Older Microsoft C compilers can't generate code for casting unsigned
__int64 to double and the __pragma directive is not available for
suppressing warnings.
2016-03-10 10:56:06 +01:00
David Allsopp 8ea32269d1 Correct missing header #define's in old MSVC 2016-03-10 10:56:05 +01:00
David Allsopp b002519fa5 Provide workaround for missing _vscprintf
_vscprintf was added to Microsoft Visual C++ in .NET 2002. Provide an
implementation of it for older compilers.
2016-03-10 10:56:04 +01:00
David Allsopp 78293a0775 Correct floating point on old MSVC
Visual Studio 6 and earlier have somewhat insane handling of comparisons
with nan values. Provide alternate (slower) versions of float comparison
functions using isnan rather than standardized comparison behaviour.
2016-03-10 10:56:03 +01:00
David Allsopp 709d89b438 Fix compilation using Visual Studio .NET 2002
Microsoft introduced the `LL` suffix for integer literals in Visual
Studio .NET 2003 - earlier versions use `i64`
2016-03-10 10:56:02 +01:00
David Allsopp 19dee481ea Fix DEBUG_PRINT for older MS C Compilers
Support was added for variadic macros in the RTM version of Visual Studio
2005 (CL Version 14), but there are variants of the version 14 compiler
included in SDKs released before Visual Studio 2005 itself which do not
support them. Fix the non-DEBUG version of win32unix to compile correctly
and not display a warning for DEBUG_PRINT calls in
`otherlibs/win32unix/select.c`.
2016-03-10 10:55:18 +01:00
David Allsopp ef2cdbe1e7 Correctly detect _set_invalid_parameter_handler
There is still at least one Microsoft-supported version of the CRT which
does not include the secure versions of various functions, and
consequently does not include `_set_invalid_parameter_handler`.

Tests for the definition and inclusion of
caml_install_invalid_parameter_handler refined to detect
`__STDC_SECURE_LIB__` defined in `crtdefs.h`. This is a badly documented,
but standardised, define. Although `__STDC_SECURE_LIB__` is compatible
with MinGW, I have retained the test for `_MSC_VER` and so kept this as an
MSVC-only patch.
2016-03-10 10:55:01 +01:00
alainfrisch de857d6fb9 GPR#324: Make boot/ocamlc read directly byterun/primitives (patch by Francois Bobot). 2016-03-10 10:46:19 +01:00
Alain Frisch 8eb9c0b46e An quick way to ensure that ocamlopt compiles fine on supported archs.
Examples: `make check_arch=power`, `make check_all_arches`.
2016-03-09 18:54:15 +01:00
Alain Frisch 3d00fc8773 Avoid ambiguous or-pattern. 2016-03-09 18:42:07 +01:00
alainfrisch 8d0f08b20e Fix a probable non-bug.
Commit 39760599e5 introduced some bogus logic.
Emitting structured constants can register more closures to be emitted.  But either
the name of these closures is "unique enough", in which case we don't need the already_translated
argument in transl_all_functions_and_emit_all_constants (and transl_all_functions does not need
to return the set of already emitted functions).  Or this is not the case, and the previous code
was wrong since it forgot to remember the set returned by transl_all_functions.

I've fixed the code assuming the latter in order to be on the safe side, but we would probably have
noticed if the former assumption did not hold.  I've added a note to the commit mentioned above
so that @chambart can have a look at it.
2016-03-09 13:41:13 +01:00
Jacques Garrigue 35f10d6cd0 Merge branch 'trunk' of ssh://github.com/ocaml/ocaml into trunk 2016-03-06 23:18:08 +09:00
Jacques Garrigue 05922fa6f9 Fix PR#7152: lower level of non-generalized variables to binding time of enclosing module 2016-03-06 23:17:45 +09:00
Gabriel Scherer c62d28678f 4.03 Changes: clarification and further credits (partial) 2016-03-05 17:25:17 -05:00
Gabriel Scherer 53c181b3ce Merge pull request #492 from chambart/fix_dflambda
Fix -dflambda argument
2016-03-05 09:26:21 -05:00
Pierre Chambart 60ab5c5990 Fix -dflambda argument 2016-03-04 16:32:14 +01:00
Jeremie Dimino 63b28d09c0 fix expect tests on windows 2016-03-03 16:52:03 +00:00
Damien Doligez 044901bf13 PR#1956 (partial): do not export marshall_flags 2016-03-03 15:02:59 +01:00
Damien Doligez d01d3b5113 check-typo: check LICENCE cited without a path 2016-03-03 15:02:23 +01:00
Mark Shinwell 7c1003d6bc Merge pull request #477 from trefis/4.03-docstrings
GPR#477: docstrings
2016-03-03 13:19:09 +00:00
Mark Shinwell 8204f5d1a7 Fix PR7157 (too many minor collections) 2016-03-03 09:38:07 +00:00
Jacques Garrigue a18af2a837 Fix PR#7160: Type synonym definitions can weaken gadt constructor types 2016-03-03 09:58:26 +09:00
Mark Shinwell a7e6ec417e Correct erroneous comment 2016-03-02 15:55:00 +00:00
Jérémie Dimino c973f75799 Merge pull request #457 from diml/expect-tests
Rewrite typing tests as expect tests
2016-03-01 10:59:18 +00:00
Jeremie Dimino 3e255b5e07 Switch typing-poly to expect tests 2016-03-01 10:36:24 +00:00
Jeremie Dimino 3cd841b676 Switch typing-immediate to expect tests 2016-03-01 10:36:24 +00:00
Jeremie Dimino 216119d222 Add support for expect test in the testsuite 2016-03-01 10:36:24 +00:00
Jeremie Dimino 68feb5f286 Add Misc.delete_eol_spaces 2016-03-01 10:36:24 +00:00
Jeremie Dimino 86daba0e90 Add Toploop.override_sys_argv 2016-03-01 10:36:24 +00:00
Jeremie Dimino b98461c3f3 Add Misc.protect_refs 2016-03-01 10:36:24 +00:00
Jacques Garrigue e8e352f1ed add test for required externals 2016-03-01 09:35:29 +09:00
Jacques Garrigue df23448196 Fix PR#7113: -safe-string can break GADT compatibility check 2016-03-01 09:35:29 +09:00
Mark Shinwell 7f02ca33bf Flambda: do not forget the default case when measuring the size of Switch 2016-02-29 16:47:41 +00:00
Mark Shinwell ea6865d183 Flambda: restore correct simplification code for over-applications 2016-02-29 16:47:37 +00:00
Mark Shinwell 158e6fc1ae Stop producing erroneous backtrace frames in Flambda mode 2016-02-29 11:27:08 +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 49af1c4613 Merge pull request #484 from lpw25/fix-extract-projections
GPR#484: Change how Extract_projections handles nested sets of closures
2016-02-26 16:18:17 +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
Mark Shinwell 8abcf62783 Move PR7118/7120 Changes entry into correct section 2016-02-26 16:08:29 +00:00
Damien Doligez 8553eea1e3 Merge pull request #485 from kayceesrk/trunk
Minor prettify printing of tuple types and constructor declaration
2016-02-25 15:50:40 +01:00