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
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
Xavier Leroy
4bd9adbdc7
PR#7030: libasmrun_shared.so fails to build on SPARC Solaris
2015-10-27 18:16:08 +01:00
alainfrisch
a127e661b2
Code cleanup: replace let-binding of type unit with sequence.
2015-10-27 11:28:36 +01:00
Jeremy Yallop
19301282d5
Use make_iprintf to build Format.ikfprintf and Format.ifprintf.
2015-10-27 00:02:45 +00:00
Jeremy Yallop
e999c68622
Use make_iprintf to build Printf.ikfprintf and Printf.ifprintf.
2015-10-27 00:02:45 +00:00
Jeremy Yallop
1644284d0f
Add make_iprintf (make_printf optimised for ifprintf) to CamlinternalFormat.
2015-10-27 00:02:45 +00:00
Leo White
9feda5c10a
Merge pull request #264 from lpw25/better-alias-errors
...
Better -no-alias-deps errors
2015-10-26 11:23:56 +00:00
Mark Shinwell
4b4d8a150a
Fix compilation error for GPR#238 merge
2015-10-26 10:41:53 +00:00
Leo White
99ad68d256
Improve error for ill-typed functor application
2015-10-26 10:32:41 +00:00
Mark Shinwell
f6538a8abe
Merge pull request #238 from chambart/less_unsafe_CamlinternalOO
...
GPR#238: Make CamlinternalOO a bit less unsafe
2015-10-26 09:47:40 +00:00
Xavier Leroy
313877fac9
Include test/basic in the "all-basic" target.
2015-10-26 10:32:48 +01:00
Gabriel Scherer
e88b2fbf69
testsuite/Makefile: subset targets all-{basic,lib,typing,tool}
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 16:24:49 +00:00
Gabriel Scherer
54e039901e
GPR#42: Add simpler functor type syntax
...
(Leo White)
Add support for simple functor types of the form:
S -> T
equivalent to:
functor (_ : S) -> T
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16546 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 16:24:47 +00:00
Gabriel Scherer
8afbaa5747
New representation for queues, avoiding Obj.magic
...
(Jérémie Dimino)
- use inline-records to avoid using Obj.magic while keeping
indirections to the minumum
- change the representation from a cyclic list to a simply-linked
list. The drawback is one more word per queue, but it makes the
implementation clearer
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16545 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 13:39:07 +00:00
Gabriel Scherer
2d9ff61b02
Improve the code generation for if equivalent to seqand or sequor
...
(Pierre Chambart)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16544 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 13:39:05 +00:00
Jacques Garrigue
b96107d228
fix error in parmatch.ml, observed in testsuite/tests/tools-ocamldoc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16543 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 12:40:31 +00:00
Gabriel Scherer
b64bef1aa4
Fix few reference files in the test suite
...
(Florian Angeletti)
Update few reference files in tests/typing-gadt to cope with the
altered error message for non-refutable pattern, i.e. invalid use of
`| _ -> .`.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16542 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 12:06:38 +00:00
Gabriel Scherer
1ee366e423
Changes: rename 'octachron' into Florian Angeletti
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16541 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 12:06:36 +00:00
Xavier Leroy
38d9bf4523
GPR#226, continued: reduce optimization level for GCC < 4.2.
...
Following reports that -fwrapv has known issues in GCC prior to version 4.2,
use '-O' (and warn) for GCC [3.0, 4.2);
use '-O2 -fwrapv -fno-strict-aliasing' for GCC 4.2 and up.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 10:31:59 +00:00
Xavier Leroy
6054bcb3dd
GPR#164: more efficient (branchless) implementation of Pervasives.compare
...
specialized at type 'float'.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16539 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-25 10:21:13 +00:00
Mark Shinwell
ca39ac766e
GPR#262: Multiple GC roots per compilation unit
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16538 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 15:16:22 +00:00
Jérémie Dimino
01cc509f3d
bootstrap (to fix build of ocamlopt)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16537 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 15:06:59 +00:00
Damien Doligez
d3f982aaa8
move the new record field of channel to avoid breaking some stubs in JS Core
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16536 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 15:03:48 +00:00
Mark Shinwell
8f7f3162a7
Fix text of message
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16535 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 14:36:56 +00:00
Alain Frisch
90323d0d1e
Starting to share identical parts in the root Makefile and Makefile.nt.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16534 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 13:49:59 +00:00
Alain Frisch
3a9ec51004
Fix Makefile.nt.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16533 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 13:42:00 +00:00
Jacques Garrigue
a335b18a45
merge branches/gadt-warnings
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16532 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 08:33:44 +00:00
Mark Shinwell
7d5a2ecde8
add missing files (Translattribute)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16531 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 08:28:59 +00:00
Mark Shinwell
e27e699fca
GPR#173: Attributes to control inlining
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16530 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-23 08:18:08 +00:00
Leo White
15cc266e2f
Better -no-alias-deps errors
2015-10-22 17:11:08 +01:00
Mark Shinwell
ce46d3bf2b
Fix .travis-ci.sh so it works again
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16529 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-22 14:10:00 +00:00
Alain Frisch
4984cd0f8f
PR#7022, GPR#259: unbox float and boxed ints earlier, avoid second pass.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16527 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-20 15:11:11 +00:00
Damien Doligez
587e2d9cbb
remove duplicate entry in Changes
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16526 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-19 15:50:12 +00:00
Damien Doligez
659615c7b1
fix PR#7003 and a few other bugs caused by misuse of Int_val
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16525 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-19 15:47:33 +00:00