pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libjit Fix GCC 3.4+: Don't clobber %ebx on IA32.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/081e9be08e51
branches:  trunk
changeset: 505946:081e9be08e51
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jan 09 19:00:43 2006 +0000

description:
Fix GCC 3.4+: Don't clobber %ebx on IA32.

diffstat:

 devel/libjit/distinfo         |   3 ++-
 devel/libjit/patches/patch-aa |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 8679866849d2 -r 081e9be08e51 devel/libjit/distinfo
--- a/devel/libjit/distinfo     Mon Jan 09 18:50:57 2006 +0000
+++ b/devel/libjit/distinfo     Mon Jan 09 19:00:43 2006 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/10/22 15:51:02 rillig Exp $
+$NetBSD: distinfo,v 1.4 2006/01/09 19:00:43 joerg Exp $
 
 SHA1 (libjit-0.0.4.tar.gz) = 663055ee5bb600e9dfd28c03456a66bf2b66811b
 RMD160 (libjit-0.0.4.tar.gz) = e8ff27b3f1e0dbff0ed6cc1d5fd2a5cc4a74f1fd
 Size (libjit-0.0.4.tar.gz) = 580278 bytes
+SHA1 (patch-aa) = e5c58111aad14e4ead390fa55630b06cdf2711da
diff -r 8679866849d2 -r 081e9be08e51 devel/libjit/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libjit/patches/patch-aa     Mon Jan 09 19:00:43 2006 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.3 2006/01/09 19:00:43 joerg Exp $
+
+--- jit/jit-cpuid-x86.c.orig   2006-01-09 18:53:59.000000000 +0000
++++ jit/jit-cpuid-x86.c
+@@ -57,6 +57,7 @@ static void cpuid_query(unsigned int ind
+ {
+ #if defined(__GNUC__)
+       __asm__ __volatile__ (
++              "\tpushl %%ebx\n"
+               "\tmovl %0, %%eax\n"
+               "\txorl %%ebx, %%ebx\n"
+               "\txorl %%ecx, %%ecx\n"
+@@ -68,7 +69,8 @@ static void cpuid_query(unsigned int ind
+               "\tmovl %%ebx, 4(%%esi)\n"
+               "\tmovl %%ecx, 8(%%esi)\n"
+               "\tmovl %%edx, 12(%%esi)\n"
+-              : : "m"(index), "m"(info) : "eax", "ebx", "ecx", "edx", "esi"
++              "\tpopl %%ebx\n"
++              : : "m"(index), "m"(info) : "eax", "ecx", "edx", "esi"
+       );
+ #endif
+ }



Home | Main Index | Thread Index | Old Index