Commit Graph

10977 Commits (1fb2a8166c70c92b620c5b57385ab373f3e69852)

Author SHA1 Message Date
Gabriel Scherer 1fb2a8166c update Changes for GPR#279 2015-11-05 16:52:03 +01:00
Jérémie Dimino f486350b74 Merge pull request #281 from bobot/unbox_madly
Unbox Sys.time and compare primitive
2015-11-05 13:55:04 +00:00
François Bobot 26b8189fe8 Update Changes 2015-11-05 13:09:27 +01:00
François Bobot 203c444fd4 Make `Pervasives.ldexp` unboxed and noalloc 2015-11-05 13:07:03 +01:00
François Bobot c0f19965f4 Make specialized compare unboxed
- float
    - int32
    - int64
    - nativeint

  Not for int because the comparison is done directly on the untagged version.
  Useful mainly for floats since they can be stored unboxed in records or arrays.
2015-11-05 13:07:03 +01:00
François Bobot 3c76d0678d Make `Sys.time` unboxed and noalloc 2015-11-05 13:07:03 +01:00
Leo White 44306923a8 Merge pull request #261 from lpw25/fix-pr6998
Fix PR6998
2015-11-05 11:35:55 +00:00
Jeremie Dimino 5ed4d5bb4b add missing author in Changes 2015-11-05 10:41:13 +00:00
Jeremie Dimino 6676784f63 PR#6806: Allow type annotations before the "->" in "fun <args> -> <expr>"
Patch by Valentin Gatien-Baron
2015-11-05 10:41:13 +00:00
Jeremie Dimino 26657d5736 PR#6806: Syntactic sugar for type annotations on record fields
Add the following syntactic sugars, in both expressions and patterns:
- { f : typ = x } to mean { f = (x : typ) }
- { f : typ     } to mean { f = (f : typ) }

In expressions, the type annotation can also be a coercion. For
instance: { f :> typ } to mean { f = (f :> typ) }.

Patch by Valentin Gatien-Baron
2015-11-05 10:41:13 +00:00
Alain Frisch 3cc3932584 Merge pull request #279 from alainfrisch/fix_frametables
Attempt to fix a probable bug introduced by GPR#156.
2015-11-05 09:20:47 +01:00
Jacques Garrigue f32db119ce Fix PR#7036: Module alias and package type equality 2015-11-05 14:20:50 +09:00
Leo White 02ef87ed8f Add a test for no-alias-deps 2015-11-04 13:46:46 +00:00
Leo White 278efc9196 Use ignore because its less fragile than _ 2015-11-04 11:01:34 +00:00
Leo White e714e25a01 Take the P out of my name 2015-11-04 11:01:34 +00:00
Leo White c0ea8bf779 Add Changes entry 2015-11-04 11:01:34 +00:00
Leo White 6ee0712423 Put back option in persistent struct hashtable 2015-11-04 11:01:33 +00:00
Leo White 74215da003 Fix PR6998 2015-11-04 11:01:33 +00:00
alainfrisch 10b4f8d213 Attempt to fix a probable bug introduced by GPR#156. 2015-11-03 23:09:33 +01:00
Alain Frisch a1d6739163 Merge pull request #272 from alainfrisch/unbox_classify_float
Avoid boxing floats when calling classify_float
2015-11-03 21:08:56 +01:00
alainfrisch 26c9b9007f Add a note suggesting to switch to the emulation of clasify_float as a faster alternative to calling the libc. 2015-11-03 21:07:33 +01:00
alainfrisch 6e0352187b Changelog. 2015-11-03 21:05:07 +01:00
alainfrisch 364f1cb79f Merge branch 'trunk' of github.com:ocaml/ocaml into unbox_classify_float 2015-11-03 21:03:07 +01:00
alainfrisch 1f3eac9b94 No need to use CAMLprim for native form of primitives. 2015-11-03 21:02:30 +01:00
Jérémie Dimino 8fee9d45e1 Merge pull request #277 from diml/more-unboxed-on-externals
Switch a few externals to [@@unboxed]
2015-11-03 17:59:21 +00:00
Jeremie Dimino 770c0531c8 Update Changes 2015-11-03 17:22:05 +00:00
Jeremie Dimino 665176d77a Switch a few externals to [@@unboxed]
Switched the following functions:
- {Nativeint,Int32,Int64}.{of,to}_float
- Int{32,64}.float_of_bits
- Int{32,64}.bits_of_float
2015-11-03 17:20:05 +00:00
Damien Doligez 15796e716c update tools/check-typo to work with git attributes instead of svn properties 2015-11-03 17:32:50 +01:00
Gabriel Scherer 9e190ed926 update Changes for GPR #276 2015-11-03 14:31:25 +01:00
Gabriel Scherer 0a33eb4da5 Merge pull request #276 from lpw25/fix-pr6972
Fix PR6972
2015-11-03 14:26:54 +01:00
Leo White bbce6c5768 Put the * back on the doc comments 2015-11-03 12:51:01 +00:00
Xavier Leroy af584b9f1b testsuite: add missing prototypes for C functions
In Suse SLES 12, gcc (by default) emits warnings for unprototyped C functions.  In conjunction with -Werror this makes the test suite unusable.

Also: in tests/unboxed-primitive-args/common.ml, fixed what looks like a harmless typo in the declaration of cleanup_float.
2015-11-03 11:45:11 +01:00
Xavier Leroy 27c467c777 byterun/ yacc/ : replace some K&R function declarations with proper prototypes. 2015-11-03 11:08:01 +01:00
Xavier Leroy 335c53bfd8 otherlibs/*unix: proper declaration of cstringvect()
Share the declaration in "unixsupport.h", and give it a full prototype.
2015-11-03 11:05:10 +01:00
Xavier Leroy 3f3d8342ac otherlibs/unix: don't use 'h_errno' as a local variable
Under Glibc, 'h_errno' is a macro that expands to a system call, like 'errno'.  Here, we just want a local variable.
2015-11-03 11:03:38 +01:00
Mark Shinwell bbd0ac54ab Changes entries for GPR#270 and GPR#271 2015-11-02 14:51:03 +00:00
Mark Shinwell e9d4dc28c7 Merge pull request #270 from mshinwell/immutable_exceptions
GPR#270: Make transl_exception_constructor generate Immutable blocks
2015-11-02 14:50:21 +00:00
Mark Shinwell b5d906778e Merge pull request #271 from mshinwell/record_mutability
GPR#271: Fix incorrect mutability flag when records are built using "with"
2015-11-02 14:48:01 +00:00
Gabriel Scherer 2907c4971e Merge pull request #274 from yallop/changelog-order
Request that changelog entries maintain the order.
2015-10-31 17:11:21 +01:00
Jeremy Yallop 1028d0aa44 Request that changelog entries maintain the order. 2015-10-31 16:02:52 +00:00
Gabriel Scherer 6ca3ce56ee Changes elaboration 2015-10-31 16:58:17 +01:00
Gabriel Scherer b2e81d7800 Merge pull request #267 from yallop/faster-ifprintf
A more efficient implementation of ifprintf
2015-10-31 16:54:40 +01:00
Jeremy Yallop afccdb3609 Changelog entry for PR7034. 2015-10-31 12:27:01 +00:00
Some Name bf56ce3c0a update CI build script to switch to git 2015-10-29 15:30:11 +01:00
alainfrisch 0287ee2ecf Also adapt threads/pervasives.ml. 2015-10-28 16:46:12 +01:00
alainfrisch 96c3a3da75 Avoid boxing floats when calling Pervasives.classify_float. 2015-10-28 16:43:35 +01:00
Jeremie Dimino 7a318f1a64 Update printing of custom index operators 2015-10-28 14:36:10 +00:00
Mark Shinwell f923aa767b push the correct patch 2015-10-28 14:15:11 +00:00
Mark Shinwell ee17bfc0ce look at all labels when determining mutability of a record resulting from 'with' 2015-10-28 13:58:30 +00:00
Mark Shinwell 17e1078cce transl_exception_constructor now uses Immutable 2015-10-28 10:56:49 +00:00