Commit Graph

8194 Commits (05c973e6ed4be5e2fb28ef97b9659c9677ccbfd1)

Author SHA1 Message Date
Damien Doligez f824b6a46c change duplicate tag in docs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12176 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-21 12:41:33 +00:00
Wojciech Meyer df19aff00d Reverting "PR#5504: Add Changes entry". For time being - sorry.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12175 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-20 21:36:16 +00:00
Xavier Leroy 6d57d49f5e Optimize away compile-time beta-redexes, as found sometimes in generated code, by Coq's extraction in particular
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12174 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-20 17:45:10 +00:00
Wojciech Meyer afbd4d496c PR#5394: Add Changes entry
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12173 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 18:35:32 +00:00
Wojciech Meyer f9cedc7fe8 PR#5394: Documentation for -dtypes is missing in manpage.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12172 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 18:35:30 +00:00
Wojciech Meyer 11f4f96928 PR#5504: Add Changes entry
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12171 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 17:30:03 +00:00
Wojciech Meyer 5899af063c PR#5504: Fix. Patch proposed by Stephane Glondu, thanks.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12170 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 17:30:02 +00:00
Wojciech Meyer cd40fae3e3 PR#5510: Add Changes entry
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12169 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 17:04:42 +00:00
Wojciech Meyer 1ac0f462bc PR#5510: Fix
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12168 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-19 17:00:39 +00:00
Xavier Leroy e545071c8a Reverting commits 12108 and 12109 concerning PR#4072. I feel the cure (making ocamlc's evaluation order inconsistent with the ZAM push-enter model) is worse than the illness.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12167 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-18 17:21:42 +00:00
Xavier Leroy b07b3032c0 - PR#5509: misclassification of statically-allocated empty array that
falls exactly at beginning of an otherwise unused data page.
- i386/emit_nt.mlp: add zero word at end of data segment, like in other ports.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12166 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-18 16:56:29 +00:00
Fabrice Le Fessant e73cade9b2 Fix PR#5297: compiler does not check %primitive's existence
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12165 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-18 09:45:30 +00:00
Fabrice Le Fessant 62b0e4fb10 Fix Changes for last commit
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-18 09:43:58 +00:00
Fabrice Le Fessant b2cbd03b35 Fix PR#5309: Queue.add is not thread/signal safe
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12163 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-18 09:36:13 +00:00
Jérémie Dimino 62fc590a47 PR#5495: add "or" to the list of infix keywords in the camlp4 parser
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12162 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-17 12:52:04 +00:00
Xavier Leroy 5ad47ce4e6 Backtrack previous changes for PowerPC/Linux, which turns out to lack what we need for turning stack overflows into exceptions
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12160 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-17 10:43:50 +00:00
Xavier Leroy 339bcbb2c6 PR#5064, PR#5485: try to ensure that 4K words of stack are available
before calling into C functions, raising a Stack_overflow exception
otherwise.  This reduces (but does not eliminate) the risk of
segmentation faults due to stack overflow in C code.
Implemented for i386, amd64 and power, under Linux and MacOSX.
Plus: remove some more stuff related to obsoleted platforms (IA64, SunOS 4).


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12159 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-17 10:12:09 +00:00
Damien Doligez d6029c574f reverse previous commit
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12158 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-15 16:31:59 +00:00
Jérémie Dimino 8c478a926a PR#5481: update camlp4 ast magic numbers and add a comment before the ast definition
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12155 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-15 09:30:45 +00:00
Xavier Clerc 79507d54bb PR#5503: error when ocamlbuild is passed an absolute path as build directory
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12154 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-15 09:10:52 +00:00
Jacques Garrigue 0f85a64020 Unshare on type annotations even in non -principal mode.
Slightly slower (1% for lablgtk.cma) but better compatibility
with -principal and gadts.

By the way full -principal is a 25% slowdown for lablgtk.cma.

As a side effect of unsharing in patterns, (x : t) is now
internally converted to (_ as x : t).
This should have no impact on pattern matching compilation,
but watch out for other problems.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12153 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-14 10:00:18 +00:00
Damien Doligez d4522f062c Change "Ocaml" to "OCaml" everywhere
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12152 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-13 17:48:41 +00:00
Damien Doligez e6cb2d6494 document the new options of ./configure
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12151 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-13 17:47:23 +00:00
Damien Doligez e4d22f63b7 PR#5159: better documentation of locations
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12150 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-13 17:45:53 +00:00
Damien Doligez e7f5b858c2 More renaming to OCaml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12149 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 16:15:24 +00:00
Damien Doligez d7cbf2a01a PR5477: (continued) fix Tcl/Tk configuration to use $x11_link instead of $x11_libs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12148 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 15:29:36 +00:00
Damien Doligez 066ef003d4 typo in doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12147 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 14:45:41 +00:00
Damien Doligez f283133875 PR#5159: better documentation of type "position"
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-10 09:08:02 +00:00
Damien Doligez b392c77aa6 PR#5385: add a warning when MACOSX_DEPLOYMENT_TARGET is set
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12143 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-09 18:41:53 +00:00
Damien Doligez 604f1de662 add missing link in doc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12140 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 16:41:02 +00:00
Damien Doligez f065ad5698 better documentation for format6
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12136 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 13:39:48 +00:00
Damien Doligez a776e35b9e reformat over-long lines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12134 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 13:12:53 +00:00
Damien Doligez e61911c5c9 PR#4278: configure without graph; fix problem when X11 not found
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12132 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 12:43:34 +00:00
Damien Doligez b2e4161d38 set svn:keywords property
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12131 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-07 11:05:56 +00:00
Damien Doligez c260567018 PR#1164: better error message when giving .cmxa input files to ocamlopt -a
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12130 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-06 16:44:43 +00:00
Damien Doligez b28b11541f fix try_finally in case the finally function raises an exception
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12129 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-06 12:56:08 +00:00
Benedikt Meurer b5eec7890b Fix various compiler warnings in asmrun.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12128 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-05 09:56:23 +00:00
Xavier Leroy a775cb815b Related to #5493 again: more explanations about string mutation, string sharing, and why mutation is best avoided.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12127 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-05 09:51:49 +00:00
Benedikt Meurer d0f04172e7 Fix various compiler warnings in labltk.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12126 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-05 09:20:46 +00:00
Benedikt Meurer e76218f17d [arm] Update copyright notices as suggested by Xavier.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-05 08:47:16 +00:00
Benedikt Meurer 05627e0de4 Merge the new ARM backend into trunk (PR#5433).
Initial merge of the new ARM backend (commit ec5b444c7f) from my development
repository at https://github.com/bmeurer/ocaml-arm/tree/ec5b444c7f .

Compared to the old ARM backend, this one does the following:
- Support for both software and hardware floating-point (VFPv3).
- Properly supports interworking with Thumb/Thumb-2 code for both OCaml and C
  code.
- Supports dynamic linking and large memory models (PR#5049).
- Optional support for position-independent code via a command line option
  -fPIC. This is disabled by default and not required for natdynlink.
- Can emit both ARM and Thumb-2 code, with avg. code size savings of 28% for
  Thumb-2 (quite close the optimal 30% advertised by ARM Ltd.).
- Supports both AAPCS (armel) as well as extended VFP calling conventions
  (armhf).
- Supports several special ARM instructions to reduce code size and latency.
- Uses standard ARM EABI runtime functions instead of relying on GCC internals.
- Supports exception backtraces.
- Supports profiling using gprof.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12124 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-04 10:15:24 +00:00
Benedikt Meurer bb007b5a22 [i386] Don't override insert_op.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12123 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-04 10:00:44 +00:00
Benedikt Meurer 78e2ed88d8 [amd64] Don't override insert_op.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12122 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-04 10:00:09 +00:00
Benedikt Meurer 89f48bff91 Implement insert_op using insert_op_debug in Selectgen.
This way we don't need to override insert_op AND insert_op_debug for
every port that cares about them.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12121 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-04 09:59:28 +00:00
Benedikt Meurer fb327a7c2b Also pass Cmm.memory_chunk to select_addressing.
The rational behind this change is that for the ARM instruction sets, the
valid range for address offsets depends on the type of data being loaded
or stored.



git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12120 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-04 09:43:33 +00:00
Damien Doligez 816ac58196 PR#5176: caml-types.el: large types trigger stack overflow in regexp matcher
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12119 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 20:37:26 +00:00
Damien Doligez 1afe70ff8a PR#5403: give better error message when emacs is not found in PATH
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12118 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 16:04:49 +00:00
Damien Doligez b31d4272bc update instructions for recompilation under MSVC
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12117 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 16:03:43 +00:00
Damien Doligez daec73519d at least on my machine, makeindex doesn't like "|"| in a \verb within a \index
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12116 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 16:02:28 +00:00
Damien Doligez 94f9c9fa83 cut long lines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12115 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-02-03 16:01:21 +00:00