Commit Graph

13059 Commits (e26cd12701942ceac942f6fc76df5ceff10536af)

Author SHA1 Message Date
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
alainfrisch 42a5b36bab Fix probable bug.
"Probable" because this was found by code inspection after enabling warning 27.  I assume
this could lead to an actual bug in the type-checker, but I have not tried to trigger it.

Fix confirmed by @garrigue.
2016-03-09 12:00:42 +01:00
alainfrisch bbbdbdb318 Fix testsuite. 2016-03-08 23:39:17 +01:00
Frederic Bour 255d6664c0 parser: a few more wrong symbol numbers 2016-03-08 23:39:15 +01:00
Frederic Bour 92cb709e46 parser: wrong symbol number in error 2016-03-08 23:39:13 +01:00
Frederic Bour 3c259771bf Attributes sometimes dropped by parser 2016-03-08 23:39:11 +01:00
Damien Doligez 8eb1190e72 Merge pull request #487 from Drup/attr_class_4.03
Attr class 4.03
2016-03-08 11:50:40 +01:00
Damien Doligez a8d8a2adb8 Merge pull request #497 from jhjourdan/deadcode_MMAP_INTERVAL
Remove dead code related to old MMAP_INTERVAL
2016-03-08 11:36:51 +01:00
Damien Doligez 07d16450c8 Merge pull request #496 from jhjourdan/fix_bootstrap
Fix coreboot, update .depend
2016-03-08 11:36:15 +01:00
Damien Doligez 1ddc0ce8fe Merge pull request #495 from jhjourdan/multiple_hooks
Remove double calls to caml_finalize_hook
2016-03-08 11:35:26 +01:00
Jacques-Henri Jourdan 70cfba4445 Remove dead code related to old MMAP_INTERVAL 2016-03-07 23:39:07 +01:00
Jacques-Henri Jourdan dd74659c68 * Fix coreboot target. This target calls promote, which itself now
uses tools/stripdebug. This executable has to be ran with the new
  runtime, not the one in boot/.

* Update .depend for byterun/ and asmrun/
2016-03-07 23:24:52 +01:00
Jacques-Henri Jourdan 195b31c8f3 remove double calls to caml_finalize_hook 2016-03-07 23:14:16 +01:00
Gabriel Scherer bde0cbea2d Merge pull request #493 from adrien-n/mingw-cross-compilation-improvements
Mingw cross compilation improvements
2016-03-07 11:42:30 -05: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
Jacques Garrigue 95410ef232 Merge branch '4.03' of ssh://github.com/ocaml/ocaml into 4.03 2016-03-06 23:16:12 +09:00
Jacques Garrigue 607b0f879e Fix PR#7152: lower level of non-generalized variables to binding time of enclosing module 2016-03-06 23:15:55 +09:00
Gabriel Scherer c62d28678f 4.03 Changes: clarification and further credits (partial) 2016-03-05 17:25:17 -05:00
Gabriel Scherer ab8fc91e29 Merge pull request #492 from chambart/fix_dflambda
Fix -dflambda argument
2016-03-05 09:28:42 -05:00
Gabriel Scherer 53c181b3ce Merge pull request #492 from chambart/fix_dflambda
Fix -dflambda argument
2016-03-05 09:26:21 -05:00
Adrien Nader 78bdfa53ca Makefile: use "$(EXT_DLL)" instead of hard-cording ".so". 2016-03-05 14:25:11 +01:00
Adrien Nader b211eba63e otherlibs/win32unix: factor Makefile.nt and Makefile non-.nt. 2016-03-05 14:25:11 +01: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
Drup 51e330d287 Fix the order of attributes and mutable/virtual flags. 2016-03-03 17:30:18 +01:00
Drup 2a3deac766 Add ext/attr shortcut for class types. 2016-03-03 17:30:18 +01: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
Damien Doligez 5dbea030d1 PR#1956 (partial): do not export marshall_flags 2016-03-03 15:00:24 +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 8a4b0c983b Merge pull request #477 from trefis/4.03-docstrings
GPR#477: docstrings
2016-03-03 13:18:33 +00:00
Thomas Refis 3fee64a34f docstrings: add a test file 2016-03-03 12:55:34 +00:00
Thomas Refis 449e2331eb Changes 2016-03-03 12:55:33 +00:00
Thomas Refis 78d4aa1ef1 allow docstring in object and polymorphic variant types. 2016-03-03 12:54:30 +00:00
Thomas Refis 559946e83e allow docstring inside arrow types, attach them to parameters 2016-03-03 12:54:30 +00:00
Mark Shinwell 8204f5d1a7 Fix PR7157 (too many minor collections) 2016-03-03 09:38:07 +00:00
Mark Shinwell 6e223fd92b Merge pull request #488 from mshinwell/pr7157-4.03-take2
GPR#488: [Attempt to] Fix PR7157 (too many minor collections)
2016-03-03 09:36:55 +00:00
Mark Shinwell fb84058720 Fix PR7157 (too many minor collections) 2016-03-03 08:56:16 +00:00
Jacques Garrigue e14e85b992 Merge branch '4.03' of github.com:ocaml/ocaml into 4.03 2016-03-03 10:05:39 +09:00
alainfrisch 86cf4ba749 Minor tweaks to Changes. 2016-03-03 10:01:27 +09:00
alainfrisch 3b67b74ae5 Fix PR4080 has been reverted. Update Changes accordingly. 2016-03-03 10:01:27 +09:00
Damien Doligez d3d30f3db5 add quotes to avoid breaking RML's configure script 2016-03-03 10:01:27 +09:00