summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Sozeau <mattam@gentoo.org>2005-07-25 23:42:30 +0000
committerMatthieu Sozeau <mattam@gentoo.org>2005-07-25 23:42:30 +0000
commitc0787c239fbeb4f71c343dabd62b04ee1aa14eee (patch)
treeee5a4b86e7b53499553d49e0a139eb15abcda15a /dev-lang/ocaml/files
parentFix building with gcc-2 and dont bomb with alignment errors on some arches. (diff)
downloadgentoo-2-c0787c239fbeb4f71c343dabd62b04ee1aa14eee.tar.gz
gentoo-2-c0787c239fbeb4f71c343dabd62b04ee1aa14eee.tar.bz2
gentoo-2-c0787c239fbeb4f71c343dabd62b04ee1aa14eee.zip
Fix bug #97186.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-lang/ocaml/files')
-rw-r--r--dev-lang/ocaml/files/ocaml-3.08.3-gcc4.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-lang/ocaml/files/ocaml-3.08.3-gcc4.patch b/dev-lang/ocaml/files/ocaml-3.08.3-gcc4.patch
new file mode 100644
index 000000000000..b172ace08a6b
--- /dev/null
+++ b/dev-lang/ocaml/files/ocaml-3.08.3-gcc4.patch
@@ -0,0 +1,20 @@
+--- ocaml-3.08.3/otherlibs/num/bng_ia32.c.x86 2005-05-09 15:24:29.000000000 -0400
++++ ocaml-3.08.3/otherlibs/num/bng_ia32.c 2005-05-09 22:02:50.000000000 -0400
+@@ -121,7 +121,7 @@
+ "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)
+ : "eax", "edx");
+ }
+@@ -164,7 +164,7 @@
+ "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)
+ : "eax", "edx");
+ }