voyageur    15/03/19 09:28:02

  Added:                llvm-3.1-docs-pod-markup-fixes.patch
                        llvm-3.6.0-ocaml-ctypes-0.4.0.patch
  Log:
  Fix compilation with newer perl versions, bug #541132
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
00F7AB331B0F097F)

Revision  Changes    Path
1.1                  sys-devel/llvm/files/llvm-3.1-docs-pod-markup-fixes.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/files/llvm-3.1-docs-pod-markup-fixes.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/files/llvm-3.1-docs-pod-markup-fixes.patch?rev=1.1&content-type=text/plain

Index: llvm-3.1-docs-pod-markup-fixes.patch
===================================================================
--- llvm-3.1.src/docs/CommandGuide/lit.pod~     2012-03-27 03:01:14.000000000 
+0900
+++ llvm-3.1.src/docs/CommandGuide/lit.pod      2013-01-23 12:47:30.297510832 
+0900
@@ -386,8 +386,6 @@
 ********************
 PASS: D (4 of 4)
 
-=back
-
 =head2 LIT EXAMPLE TESTS
 
 The B<lit> distribution contains several example implementations of test suites
--- llvm-3.1.src/docs/CommandGuide/llvm-cov.pod~        2011-11-29 
08:39:25.000000000 +0900
+++ llvm-3.1.src/docs/CommandGuide/llvm-cov.pod 2013-01-23 13:44:32.184212441 
+0900
@@ -18,12 +18,12 @@
 
 =over
 
-=item B<-gcno=filename]
+=item B<-gcno=filename>
 
 This option selects input description file generated by compiler while 
instrumenting
 program.
 
-=item B<-gcda=filename]
+=item B<-gcda=filename>
 
 This option selects coverage data file generated by instrumented compiler.
 



1.1                  sys-devel/llvm/files/llvm-3.6.0-ocaml-ctypes-0.4.0.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/files/llvm-3.6.0-ocaml-ctypes-0.4.0.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/files/llvm-3.6.0-ocaml-ctypes-0.4.0.patch?rev=1.1&content-type=text/plain

Index: llvm-3.6.0-ocaml-ctypes-0.4.0.patch
===================================================================
diff -Naur 
llvm-3.6.0.src.orig/bindings/ocaml/executionengine/llvm_executionengine.ml 
llvm-3.6.0.src/bindings/ocaml/executionengine/llvm_executionengine.ml
--- llvm-3.6.0.src.orig/bindings/ocaml/executionengine/llvm_executionengine.ml  
2015-03-17 11:49:27.274824345 +0100
+++ llvm-3.6.0.src/bindings/ocaml/executionengine/llvm_executionengine.ml       
2015-03-17 11:49:40.333829421 +0100
@@ -43,11 +43,11 @@
   = "llvm_ee_run_static_dtors"
 external data_layout : llexecutionengine -> Llvm_target.DataLayout.t
   = "llvm_ee_get_data_layout"
-external add_global_mapping_ : Llvm.llvalue -> int64 -> llexecutionengine -> 
unit
+external add_global_mapping_ : Llvm.llvalue -> nativeint -> llexecutionengine 
-> unit
   = "llvm_ee_add_global_mapping"
-external get_global_value_address_ : string -> llexecutionengine -> int64
+external get_global_value_address_ : string -> llexecutionengine -> nativeint
   = "llvm_ee_get_global_value_address"
-external get_function_address_ : string -> llexecutionengine -> int64
+external get_function_address_ : string -> llexecutionengine -> nativeint
   = "llvm_ee_get_function_address"
 
 let add_global_mapping llval ptr ee =
@@ -55,14 +55,14 @@
 
 let get_global_value_address name typ ee =
   let vptr = get_global_value_address_ name ee in
-  if Int64.to_int vptr <> 0 then
+  if Nativeint.to_int vptr <> 0 then
     let open Ctypes in !@ (coerce (ptr void) (ptr typ) (ptr_of_raw_address 
vptr))
   else
     raise (Error ("Value " ^ name ^ " not found"))
 
 let get_function_address name typ ee =
   let fptr = get_function_address_ name ee in
-  if Int64.to_int fptr <> 0 then
+  if Nativeint.to_int fptr <> 0 then
     let open Ctypes in coerce (ptr void) typ (ptr_of_raw_address fptr)
   else
     raise (Error ("Function " ^ name ^ " not found"))




Reply via email to