Damien Doligez
5401ce8473
Update headers for the new license.
...
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez
0477bab3bf
deduplicate some startup code and fix PR#6808: the parsing of OCAMLRUNPARAM is too lax
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16074 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-05-04 15:44:40 +00:00
Gabriel Scherer
7ca29ef3f7
PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header name clashes
...
(Jérôme Vouillon and Adrien Nader and Peter Zotov)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-12-27 14:41:49 +00:00
Xavier Leroy
b868c05ec9
PR#6517: use ISO C99 types {,u}int{32,64}_t in preference to our homegrown
...
types {,u}int{32,64}.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15131 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-08-27 09:58:33 +00:00
Fabrice Le Fessant
b1943e1ac7
Remove FIRST_UNIMPLEMENTED_OP from interp.c
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14748 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-05 13:59:25 +00:00
Fabrice Le Fessant
680fe9f91d
Add FIRST_UNIMPLEMENTED_OP instructioon to simplify bootstrapping after adding new bytecode instructions at the end
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14734 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-04 20:14:23 +00:00
Xavier Leroy
c141951f2a
PR#6385: wrong allocation of large closures by the bytecode interpreter
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14733 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-05-04 07:39:30 +00:00
Xavier Leroy
774e30e138
PR#6075: avoid using unsafe C library functions (strcpy, strcat, sprintf).
...
An ISO C99-compliant C compiler and standard library is now assumed.
(Plus special exceptions for MSVC.) In particular, emulation code for
64-bit integer arithmetic was removed, the C compiler must support a
64-bit integer type.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14607 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2014-04-15 17:09:13 +00:00
Alain Frisch
0915cb5b5f
Rename raise_nostack -> raise_notrace. Expose it in Pervasives.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/raise_variants@14225 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-10-14 13:52:14 +00:00
Alain Frisch
f31325cbaf
#6203 , #5935 : variants of raise. 'reraise' is currently only inserted by the compiler when an handler does not catch the exception. The default 'raise' always start with a fresh backtrace. There is also 'raise_nostack' which does not trigger the stack trace recording. Bytecode only for now.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/raise_variants@14223 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-10-14 12:31:50 +00:00
Xavier Leroy
055d5c0379
Port to the ARM 64-bits (AArch64) architecture (experimental).
...
Merge of branch branches/arm64.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13909 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-07-18 16:09:20 +00:00
Xavier Leroy
1b72ae5896
More efficient implementation of caml_modify().
...
Performance improvement in caml_initialize().
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13723 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-06-01 07:43:45 +00:00
Damien Doligez
af0796ea30
fix C compiler warnings and bug introduced by commit 13436
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13437 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-22 18:36:22 +00:00
Damien Doligez
8d921d62a3
fix whitespace and over-long lines
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13436 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-03-22 18:22:51 +00:00
Damien Doligez
8b480cb9e2
fix a few of the warnings given by newer versions of gcc
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13320 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2013-02-26 12:47:13 +00:00
Damien Doligez
def31744f9
remove all $Id keywords
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez
3b507dd1aa
renaming of Objective Caml to OCaml and cleanup of copyright headers
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez
04b1656222
clean up spaces and tabs
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-22 12:48:24 +00:00
Damien Doligez
bdc0fadee2
merge changes from release/3.11.1 to release/3.11.2
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9540 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2010-01-20 16:26:46 +00:00
Damien Doligez
71b94fa3e8
merge changes from ocaml3111rc0 to ocaml3111
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9319 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-07-20 11:51:50 +00:00
Xavier Leroy
eb1922c6ab
ARM EABI: do not force use of register r9
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9254 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2009-05-05 09:13:26 +00:00
Xavier Leroy
5902603b2c
PR#4308 (partial fix): improve backtraces for 'spontaneous' exceptions such as Stack_overflow or Out_of_memory
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8964 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2008-08-01 11:52:31 +00:00
Xavier Leroy
c6ce97fe26
gcc optimizations for PPC64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7565 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2006-08-18 14:51:59 +00:00
Damien Doligez
0e5ca9dca5
nettoyage
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7164 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-25 18:34:07 +00:00
Xavier Leroy
9466df99c3
Wrong cast
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7141 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-10-19 11:56:09 +00:00
Xavier Leroy
85a401f88d
Suppression micro-optimisation du dispatch pour l'IA64 -- pose probleme avec gcc 4 (PR#3749), et aller un poil plus vite sur IA64 n'a aucune importance
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7080 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-24 17:08:24 +00:00
Xavier Leroy
3de54dec26
Remplacement long/unsigned long par intnat/uintnat
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7064 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2005-09-22 14:21:50 +00:00
Xavier Leroy
9a0f715af8
Nettoyage #ifdef pour PPC
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6717 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-30 17:06:02 +00:00
Xavier Leroy
c270bbea92
Je prefere sans chaines d'identification. Merci.
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6389 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-12 10:40:52 +00:00
Xavier Leroy
d3e86fdfcc
Ne pas forcer de registres si on utilise le compilateur Intel icc (PR#2586)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6387 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-12 09:16:17 +00:00
Basile Starynkevitch
e13fbb44fc
added a comment asking to keep in sync with obj.c function caml_cache_public_method[2]
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6372 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-04 13:21:46 +00:00
Jacques Garrigue
6a940ef65d
switch to new vtable representation
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6331 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-05-26 11:10:52 +00:00
Xavier Leroy
b3092ca665
saved_pc doit garder sa valeur pendant le longjmp, sinon les backtraces sont incorrects pour les exceptions levees depuis une primitive C (PR#2030)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6287 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-05-09 10:35:38 +00:00
Basile Starynkevitch
3858ce7288
added caml_prepare_bytecode (which does nothing)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6257 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-26 14:08:22 +00:00
Basile Starynkevitch
d2441b0b7f
added caml_bcodcount for traced DEBUG
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6255 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-26 07:59:23 +00:00
Basile Starynkevitch
e7baf44b05
interpreter may trace detailed stack when DEBUG
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6247 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-22 09:53:38 +00:00
Basile Starynkevitch
bc5de7f65e
caml_clear_bytecode renamed as caml_release_bytecode
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6221 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-16 13:20:58 +00:00
Basile Starynkevitch
5106930458
added empty caml_clear_bytecode
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6219 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-16 13:07:25 +00:00
Damien Doligez
0c7aecb88d
depollution suite (et fin?) (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-02 19:23:29 +00:00
Damien Doligez
5a678d29f5
depollution suite (PR#1914 et PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-01-01 16:42:43 +00:00
Damien Doligez
331b2d89c3
depollution suite (PR#1914, PR#1956)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6044 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-31 14:20:40 +00:00
Damien Doligez
31943bac1d
depollution suite (PR#1914 et PR#1956); byterun/weak.c: PR#1929 suite
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6041 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-12-29 22:15:02 +00:00
Xavier Leroy
bc33391898
Portage AMD64
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5634 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-06-30 08:28:48 +00:00
Xavier Leroy
ddaa49019c
Traiter le cas d'un makeblock qui depasse Max_young_wosize (PR#1551)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5421 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-03-06 11:55:55 +00:00
Xavier Leroy
1ca0e80c73
Ameliore backtrace dans le cas ou l'exception est levee par une primitive C (PR#654)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5299 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-26 10:47:21 +00:00
Xavier Leroy
384a4cd437
Software emulation of 64-bit integers if needed. Use safe division for int32 and nativeint if necessary
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4832 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-05-25 08:32:53 +00:00
Xavier Leroy
f7a0fae13b
Bug dans callback_exn (extern_sp n'etait pas remis a sa valeur initiale)
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4640 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-04-12 12:17:48 +00:00
Xavier Leroy
7501784c80
MAJ en-tetes pour mentionner la 'special exception' sur la LGPL
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4144 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-12-07 13:41:02 +00:00
Xavier Leroy
95df3fc184
Garantir la semantique 'arrondi vers zero' pour / et mod
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4045 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-11-27 10:17:36 +00:00
Xavier Leroy
320487c59f
Revu gestion des backtrace; suppression de RERAISE, utiliser l'adresse de l'objet exception a la place
...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4040 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-11-26 12:47:03 +00:00