[Pkg-ocaml-maint-commits] r1464 - in trunk/packages/ocaml/trunk/debian: . patches

Julien Cristau jcristau-guest at costa.debian.org
Wed Jul 20 22:28:28 UTC 2005


Author: jcristau-guest
Date: 2005-07-20 22:28:28 +0000 (Wed, 20 Jul 2005)
New Revision: 1464

Modified:
   trunk/packages/ocaml/trunk/debian/changelog
   trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch
Log:
Replace patch from Fedora with upstream fix for #309317, which is release
critical now that gcc-4.0 is the default compiler.


Modified: trunk/packages/ocaml/trunk/debian/changelog
===================================================================
--- trunk/packages/ocaml/trunk/debian/changelog	2005-07-20 21:06:16 UTC (rev 1463)
+++ trunk/packages/ocaml/trunk/debian/changelog	2005-07-20 22:28:28 UTC (rev 1464)
@@ -8,7 +8,7 @@
     generation on amd64 (reported by John Skaller).
   * debian/control: Add a dependency on emacsen-common, because this is needed
     to install the caml emacs mode in ocaml-nox (Closes: #312618).
-  * Add patch from Fedora to fix inline i386 assembly in the num library
+  * Add patch from upstream to fix inline i386 assembly in the num library
     to allow building ocaml with gcc-4.0 (Closes: #309317).
 
   Changes by Stefano Zacchiroli:
@@ -26,7 +26,7 @@
     - ignore error on clean target for config.{sub,guess} so that
       svn-buildpackage does not fail at clean time
 
- -- Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>  Sat, 09 Jul 2005 14:21:31 +0200
+ -- Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>  Thu, 21 Jul 2005 00:24:26 +0200
 
 ocaml (3.08.3-3) unstable; urgency=medium
 

Modified: trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch
===================================================================
--- trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch	2005-07-20 21:06:16 UTC (rev 1463)
+++ trunk/packages/ocaml/trunk/debian/patches/fix_i386_gcc4_build.dpatch	2005-07-20 22:28:28 UTC (rev 1464)
@@ -2,28 +2,33 @@
 ## fix_i386_gcc4_build.dpatch by Julien Cristau <julien.cristau at ens-lyon.org>
 ##
 ## All lines beginning with `## DP:' are a description of the patch.
-## DP: Patch from Fedora to fix build on i386 with gcc4.
-## DP: http://cvs.fedora.redhat.com/viewcvs/devel/ocaml/ocaml-num-gcc4.patch?root=extras&rev=1.1&view=markup
+## DP: Patch from upstream to fix build on i386 with gcc4.
+## DP: This is recorded as PR#3604 and PR#3637
+## DP: http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/otherlibs/num/bng_ia32.c.diff?r1=1.3;r2=1.3.6.1
 
 @DPATCH@
 diff -urNad ocaml-3.08.3.orig/otherlibs/num/bng_ia32.c ocaml-3.08.3/otherlibs/num/bng_ia32.c
 --- ocaml-3.08.3.orig/otherlibs/num/bng_ia32.c	2003-10-26 10:51:11.000000000 +0100
 +++ ocaml-3.08.3/otherlibs/num/bng_ia32.c	2005-06-20 17:34:10.015173470 +0200
-@@ -121,7 +121,7 @@
+@@ -121,8 +121,8 @@
          "leal 4(%1), %1 \n\t"
          "decl %2 \n\t"
          "jnz 1b"
 -        : "+&r" (a), "+&r" (b), "+&rm" (blen), "+&r" (out)
-+        : "+&r" (a), "+&r" (b), "+m" (blen), "+&r" (out)
-         : "rm" (d)
+-        : "rm" (d)
++        : "+&r" (a), "+&r" (b), "+&r" (blen), "=m" (out)
++        : "m" (d)
          : "eax", "edx");
    }
-@@ -164,7 +164,7 @@
+   if (alen == 0) return out;
+@@ -164,8 +164,8 @@
          "leal 4(%1), %1 \n\t"
          "decl %2 \n\t"
          "jnz 1b"
 -        : "+&r" (a), "+&r" (b), "+&rm" (blen), "+&rm" (out), "=&r" (tmp)
-+        : "+&r" (a), "+&r" (b), "+m" (blen), "+m" (out), "=&r" (tmp)
-         : "rm" (d)
+-        : "rm" (d)
++        : "+&r" (a), "+&r" (b), "=m" (blen), "=m" (out), "=&r" (tmp)
++        : "m" (d)
          : "eax", "edx");
    }
+   if (alen == 0) return out;




More information about the Pkg-ocaml-maint-commits mailing list