Commit Graph

8425 Commits (e6eefc3af7879fd30d00cd440f87226065f873d1)

Author SHA1 Message Date
Damien Doligez b6a8a7b56e ignore generated files
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12691 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 15:11:02 +00:00
Damien Doligez 1330131d70 PR#5677: do not use "value" as identifier (genprintval.ml)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12690 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 15:03:11 +00:00
Damien Doligez 9c3b2b4784 PR#5279: executable name is not initialized properly in caml_startup_code
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12688 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 12:58:12 +00:00
Gabriel Scherer 9c275a2e7a PR#5312: remove the Windows @responsefile feature, that conflicted
with '-w @...' command-line warning specifications [breaking change]

This change has relatively wide consequences as it modifies the windows
OCaml runtime: when the runtime computed the argument vector "argv"
passed to the program, it automatically expanded arguments of the form
@foo into the content of the filename "foo" (parsed as a sequence of
command-line arguments). This means that this "feature" was
automatically enabled for all user programs written in OCaml and
linking to the usual runtime.

This conflicted with the more recent feature of the OCaml *compiler*
(which is affected, as an OCaml program), that allows to pass warning
specifications of the form "-w @...", for example -w @ae. On windows,
it would try to replace it by the content of the file "ae", leading to
an error.

Given the warning specifications are widely used in OCaml programs
(causing silly Windows portability problems), and the @reponsefile is
anecdotical at best (at poll [1] on the Caml-list revealed no user
using this feature), it was decided to remove @responsefile
altogether.

[1] see mailing-list thread "[community poll for PR#5312] Do some
OCaml Windows users still use the @responsefile feature?"

This change affects all OCaml programs compiled under Windows. Users
previously relying on the @responsefile feature should now explicitely
expand Sys.argv themselves; use Arg.parse_argv to rerun Arg
command-line handlers on user-provided string arrays.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12685 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 11:33:00 +00:00
Gabriel Scherer bc139ae14e PR#5644: Stream.count broken when used with Sapp or Slazy nodes
There is a bug in the way concatenating operations work when combined
with `Sgen`-defined stream (Stream.from, Stream.of_string): the
concatenation functions reset the `count` field to 0, which disturbs
the Sgen producer.

While the fix in the Scons case is easy (instead of 0, set
the count to `original_count - 1`), fixing the Sapp case is more
delicate (we can't predict the size of the prepended stream). Our
technique is to change the stored left-hand-side to not the stream
data only, but the whole stream, count included.
Once we detect the prepended stream was completely consumed, we can
then restore the count to its previous value, so that Sgen's function
can be provided correct count information. This required a change in
the internal `get_data` implementation.

Slazy-constructed streams have the exact same issue: we don't know
their count before forcin them. Again, `get_data` is changed to
dynamically update the count at forcing time.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12682 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 09:58:38 +00:00
Jacques Garrigue 43c7d1b51c fix PR#5674: move Texp_poly and Texp_newtype to exp_extra
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12680 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-10 08:25:58 +00:00
Damien Doligez d04453c5de PR#5597: register names for instrtrace primitives in embedded bytecode
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12679 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 15:38:19 +00:00
Xavier Clerc 1a06299d24 Follow-up for PR#5655
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12675 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 13:15:10 +00:00
Fabrice Le Fessant 1b81bef5b9 Add more CFI directives in i386/amd64 assembly files in asmrun
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12674 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 13:08:20 +00:00
Xavier Clerc fa0e0b6ba7 PR#5647: Cannot use install_printer in debugger
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12672 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 12:40:43 +00:00
Xavier Clerc 61ff6edc27 PR#5655: ocamlbuild doesn't pass cflags when building C stubs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12670 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 10:07:26 +00:00
Xavier Clerc da7078d07b PR#5637: invalid printing of anonymous type parameters (camlp4 revised syntax)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12668 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 09:43:49 +00:00
Xavier Clerc c922570d0f PR#5651: printer for abstract data type (camlp4 revised syntax)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12666 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 09:07:43 +00:00
Fabrice Le Fessant f0eff81679 Merge commit 12664 from 4.00 on trunk/
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12665 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-09 08:46:10 +00:00
Jacques Garrigue c96855b066 fix wrong parameter name in binary annotation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12662 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-08 07:25:11 +00:00
Gabriel Scherer b667a00686 PR#5628: Add Topdirs.remove_directory (and directive #remove_directory) to remove a directory from the load path
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12660 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-07 11:40:33 +00:00
Xavier Leroy 1c7f208fbb PR#5671: initialization of compare_ext field in caml_final_custom_operations()
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12659 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-06 16:45:33 +00:00
Jérémie Dimino 6d308ad574 PR#5668: print using the syntax "let f x y z = ..." only when the pattern is an identifier
This form is incorrect when the pattern is not an identifier.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12656 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-07-04 16:29:35 +00:00
Alain Frisch 07a3f52d76 Extend ifdef example, with a compile-time getenv.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12655 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-29 10:04:17 +00:00
Alain Frisch 9d32d89108 Better error report.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12654 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-29 09:49:52 +00:00
Alain Frisch 8531a5c8ee Continue demo of ast mapper.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12653 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-29 09:36:32 +00:00
Damien Doligez ec0cb70b4d update test file following commit 10652 in ocamldoc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12652 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-27 13:14:47 +00:00
Damien Doligez ec0422aa33 PR#5661: fixes for the test suite
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12651 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-27 12:58:21 +00:00
Damien Doligez 6973c3b9da PR#5255: natdynlink detection on powerpc, hurd, sparc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12647 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-26 16:01:05 +00:00
Fabrice Le Fessant b8238a8b61 PR#5662 : typo in md5.c when clearing sensitive data in context
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12642 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 15:59:04 +00:00
Fabrice Le Fessant 8055158a17 Fix ENOMEM error on Windows when reading from terminal
On Windows, an error ENOMEM is returned when reading more than ~ 24 kB a
file descriptor attached to the terminal. This patch fixes this problem by
retrying to read a smaller amount of data (16kB), only on Windows.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12640 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 12:00:44 +00:00
Alain Frisch 0e9c989e17 Cleanup: caml_code_md5 is no longer used.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12639 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-25 09:21:58 +00:00
Alain Frisch 7630d3c41f #5657: fix location of punned record fields (for patterns as well).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12637 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 17:07:19 +00:00
Alain Frisch 98748d213d #5657: fix location of punned record fields.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12636 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 17:00:46 +00:00
Damien Doligez f439a4441b follow up of commit 12633 (PR#5131)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12635 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 16:27:34 +00:00
Damien Doligez fe9c99d855 PR#5131: compilation of custom runtime with g++ generates lots of warnings
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12633 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 16:22:38 +00:00
Damien Doligez 9cd6b389a3 better formatting of message
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12632 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 16:22:16 +00:00
Damien Doligez 7d38df4432 ignore generated files
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12631 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 16:21:39 +00:00
Damien Doligez a8a0e92f5a follow signature change of Hashtbl
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12630 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 16:21:00 +00:00
Damien Doligez fe137eedb5 PR#5233: finaliser on weak array gives dangling pointers (crash)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12627 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 14:30:11 +00:00
Xavier Leroy 7440ce3c67 Small problem with Power arch (picking r12624 from 4.00)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12626 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-21 14:16:17 +00:00
Jacques Garrigue 1d9ece5fc0 Fix PR#5627 (lablgtk not compiling with 4.00 after merge with bin-annot)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12619 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-20 12:00:13 +00:00
Jacques Garrigue 053f75b9ca bootstrap camlp4 to fix PR#5633 (slow parsing)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12615 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-19 10:50:11 +00:00
Jacques Garrigue abeb581713 revert wrong commit on bytecomp/typeclass.ml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12614 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-19 10:08:33 +00:00
Jacques Garrigue 420a2f00d7 applied (improved) patch of PR#5654
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12613 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-19 10:02:34 +00:00
Xavier Leroy 28c206ad37 PR#5643: issues with .cfi and .loc directives generated by ocamlopt -g
(Picking commit 12610 from version/4.00)


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12611 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-17 08:17:43 +00:00
Jacques Garrigue 08f29984ea Fix stack overflow by checking cycles for all types before regularity
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12608 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-14 10:42:56 +00:00
Jacques Garrigue d15380d566 update Changes
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12606 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 23:46:41 +00:00
Jacques Garrigue d683e249ca Fix PR#5073: Wrong location for 'Unbound record field label' error
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12605 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 23:45:01 +00:00
Jacques Garrigue 50abdb66a3 Fix constraint checking regression; one stack overflow remains in typing-misc/constraints.ml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12603 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 22:03:46 +00:00
Alain Frisch a0bb072243 Document -ppx in man pages.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12602 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 10:02:28 +00:00
Alain Frisch 77ce2bc57c Reduce diff between Makefile and Makefile.nt, probably removing a few bugs. Generators are still missing for Windows. We should really factorize common parts of such makefiles...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12601 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 09:22:06 +00:00
Jacques Garrigue 929e3e5ba5 Fix (type a) scope, was broken by gadt addition
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12599 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 08:38:32 +00:00
Alain Frisch d70eff6a1f Adapt ocamldoc for -ppx. Also reuse some code from Pparse instead of duplicating it.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12598 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 08:32:57 +00:00
Alain Frisch 60d0694e9f #5634: parstree rewriters (merge with ast_rewriter branch).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12597 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-06-13 08:00:27 +00:00