Gabriel Scherer
7d1f7af832
fix "compatibility macros for runtime constants that recently changed names" (svn id: 16008 ; git commit: 8c1f0cff
)
...
(Thomas Refis)
The constants weren't just renammed: they previously denoted a size in bytes,
they now denote a size in words.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16251 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-25 20:44:04 +00:00
Gabriel Scherer
907305ce20
PR#6938: fix regression on "%047.27{l,L,n}{d,i,x,X,o,u}"
...
(Benoît Vaugon, report by Arduino Cascella)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16250 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-25 20:44:02 +00:00
Xavier Leroy
8fc4849b83
big_int.ml: clarify comments.
...
test_ratios.ml: on x86-32 with x87 extended precision, the computation of the expected result is sometimes wrong because of double rounding in FP division. Reduce the number of test rounds so that we don't run into this problem. Note that the float_of_ratio function being tested produces the correct results on x86-x87, because it is immune to double rounding (exact -> extended precision -> double precision).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16249 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-25 15:25:01 +00:00
Xavier Leroy
f9176a1e26
Follow-up to r16247: garbled comment.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16248 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 18:01:03 +00:00
Xavier Leroy
af4e6bff91
PR#6896: serious reimplementation of Big_int.float_of_big_int and
...
Ratio.float_of_ratio, ensuring that the result is correctly rounded.
The previous implementations were embarassingly imprecise and slow.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16247 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 17:44:12 +00:00
Alain Frisch
f29322000e
Text.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16246 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 16:11:38 +00:00
Alain Frisch
49a2533472
PR#6902, GPR#210: runtime emits a warning when finalizing an I/O channel which is still open.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16245 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 13:11:26 +00:00
Xavier Leroy
60384ed840
For read-and-clear, use GCC/Clang atomic builtins if available.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16244 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 12:38:55 +00:00
Xavier Leroy
58c07fa89e
PR#6722: compatibility with x32 architecture (x86-64 in ILP32 mode)
...
configure: deselect ocamlopt, which is not supported
signals_machdep.h: use i386 instruction sequence, not amd64.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16243 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 12:31:42 +00:00
Alain Frisch
4e9bf58e90
Typo.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16242 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 11:34:51 +00:00
Xavier Leroy
a1bafbbb67
PR#6316: Scanf.scanf failure on %u formats when reading big integers.
...
The approach implemented is the second one suggested by Benoît Vaugon in the PR:
- The int_of_string functions accept a "0u" prefix meaning "decimal unsigned".
- The '%u' format of the scanf functions adds this "0u" prefix before conversion.
This is consistent with the current handling of unsigned hexa, octal, and binary numbers.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16241 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 09:36:03 +00:00
Damien Doligez
844b1af40c
PR#6915: Mingw-w64 has moved to mingw-w64.org
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16237 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-22 14:39:51 +00:00
Damien Doligez
3e17d04ef0
PR#6931: Incorrect error message
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16235 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-22 14:04:39 +00:00
Damien Doligez
5afcc281dd
remove redundant -O option from C compiler arguments
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16234 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-22 13:27:17 +00:00
Damien Doligez
6a693425d5
tell GCC to use only ASCII in its warnings and errors
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16233 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-22 13:22:33 +00:00
Damien Doligez
bb06fe030f
fix merge regression on nonrec
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16232 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-22 13:12:44 +00:00
Damien Doligez
60c854b66d
tests/float-unboxing: fix test for Windows
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16220 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-20 12:53:17 +00:00
Damien Doligez
392a41b441
fix small problem introduced by merging 4.02
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16219 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-20 11:09:25 +00:00
Damien Doligez
4b83d53fbc
update .depend and bootstrap compilers after 4.02 merge
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 18:34:07 +00:00
Damien Doligez
08f1a3195e
ignore generated files
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16217 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 18:33:42 +00:00
Alain Frisch
63ba313843
Fix merge issue.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16216 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 15:48:36 +00:00
Alain Frisch
748ec06e6e
GPR#109: new unboxing strategy (patch by vbrankov).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16215 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 15:47:59 +00:00
Damien Doligez
860c670848
merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev 16205)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 14:31:05 +00:00
Alain Frisch
7fdba8f533
GPR214: remove duplicate productions in the parser (patch by Jeremy Yallop).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16213 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 11:51:17 +00:00
Damien Doligez
e23fa906bd
PR#6747: ocamlobjinfo: missing symbol caml_plugin_header due to underscore
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16212 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:53:49 +00:00
Damien Doligez
871de90367
add libbfd configuration for MacOS
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16211 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:53:12 +00:00
Damien Doligez
ca2db8a939
fix problems with FORTRAN tests
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:52:12 +00:00
Damien Doligez
222562d376
typo in FORTRAN test
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16209 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:51:42 +00:00
Damien Doligez
002122b2da
remove spurious verbosity in test makefile
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16208 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:51:08 +00:00
Damien Doligez
999d9ca008
remove spurious verbosity in test makefile
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16207 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:50:36 +00:00
Damien Doligez
ea671f7f0b
fix problems with FORTRAN tests
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16206 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:50:04 +00:00
Jérémie Dimino
9ad65262de
add test for PR#6865
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16200 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-13 11:22:13 +00:00
Jérémie Dimino
19c45e683a
PR6865: Fix parsing of toplevel [let%foo _ = expr]
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16199 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-13 10:47:54 +00:00
Alain Frisch
5b7552b652
Fix bootstrap (broken by ambiguous ocamldoc comments).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16191 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-29 17:04:13 +00:00
Jacques Garrigue
c2984fe481
add tests related to PR#6899
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16190 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-29 07:33:28 +00:00
Leo White
5c55e4cc08
Attach documentation comments to Parsetree
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16189 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-28 13:11:50 +00:00
Jérémie Dimino
a90f0e4c63
add 'nonrec' as a possible attribute id
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16188 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-24 10:15:08 +00:00
Alain Frisch
30450e77df
Fix GPR#205: Clear caml_backtrace_last_exn before registering as root.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16187 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-23 16:10:03 +00:00
Jacques Garrigue
fbcfd218f1
Fix PR#6899
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16184 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-23 08:40:10 +00:00
Jacques Garrigue
0e56dde7be
For PR#6897
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16183 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-23 08:38:16 +00:00
Jacques Garrigue
b650a13145
Fix PR#6897 as suggested by Alain
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16176 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-17 11:09:49 +00:00
Alain Frisch
a836f8e47b
GPR#197: Do not emit [add zsh, %rsp] and [sub zsh, %rsp] (patch from cgaebel).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16175 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-17 09:21:36 +00:00
Alain Frisch
cd04d52523
#6902 : revert commit 15817 (it causes memory leaks on input channels).
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16174 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-15 08:21:36 +00:00
Damien Doligez
6e5c745447
GPR#191 followup: add `Is_in_static_data` to address_class.h
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16167 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-09 16:40:05 +00:00
Damien Doligez
9ab3918ec5
replace 0 -> NULL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16166 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-09 16:39:02 +00:00
Alain Frisch
b97538a7ad
#5528 : add note in Changes.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-08 13:57:50 +00:00
Mark Shinwell
8df90ef051
Port fix for GPR#191 to trunk (making gc.h and some part of memory.h public)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16163 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-08 13:21:42 +00:00
Damien Doligez
ea1e68d1a2
temporarily remove utop from the Travis build
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16158 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-04 20:10:10 +00:00
Damien Doligez
dc555cf572
small improvements to tools/gdb-macros
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16157 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-04 20:09:31 +00:00
Jacques Garrigue
d953f6e079
Fix PR#6886
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16152 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-03 22:53:25 +00:00