diff options
| author | gregoire | 2004-11-22 09:10:51 +0000 |
|---|---|---|
| committer | gregoire | 2004-11-22 09:10:51 +0000 |
| commit | a215993ad9e073fc09825742494ec06a9f8d6c84 (patch) | |
| tree | a104125a1b9029473a05a36e70cfe9ce9e9c5212 /kernel/csymtable.ml | |
| parent | 7371c43d5b065e83bbaaba584dc163cac2005802 (diff) | |
compatibility with POWERPC
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6338 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/csymtable.ml')
| -rw-r--r-- | kernel/csymtable.ml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/csymtable.ml b/kernel/csymtable.ml index f9f03e3486..73e10df656 100644 --- a/kernel/csymtable.ml +++ b/kernel/csymtable.ml @@ -8,6 +8,9 @@ open Environ open Cbytegen open Cemitcodes + +open Format + external tcode_of_code : emitcodes -> int -> tcode = "coq_tcode_of_code" external free_tcode : tcode -> unit = "coq_static_free" external eval_tcode : tcode -> values array -> values = "coq_eval_tcode" @@ -95,6 +98,8 @@ let slot_for_annot key = Hashtbl.add annot_tbl key n; n +open Format + let rec slot_for_getglobal env kn = let ck = lookup_constant_key kn env in try constant_key_pos ck @@ -159,7 +164,9 @@ and eval_to_patch env (buff,pl,fv) = eval_tcode tc vm_env and val_of_constr env c = - let (_,fun_code,_ as ccfv) = compile env c in + let (_,fun_code,_ as ccfv) = + try compile env c + with e -> print_string "can not compile \n";print_flush();raise e in eval_to_patch env (to_memory ccfv) let set_transparent_const kn = |
