summaryrefslogtreecommitdiff
path: root/devel/ode
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-03-19 15:05:39 +0000
committerjoerg <joerg@pkgsrc.org>2006-03-19 15:05:39 +0000
commitc0b3d5c3781d5c9d9d990fd87ee457711d415783 (patch)
tree8f89a10293cd5be88eb24ec2e160b83cf00e69db /devel/ode
parent846e1b7945a40b9805d528a399d17eb2f266b2f8 (diff)
downloadpkgsrc-c0b3d5c3781d5c9d9d990fd87ee457711d415783.tar.gz
Don't thrash %ebx in inline assembly, fixes GCC 3.4+.
Diffstat (limited to 'devel/ode')
-rw-r--r--devel/ode/distinfo3
-rw-r--r--devel/ode/patches/patch-ab16
2 files changed, 18 insertions, 1 deletions
diff --git a/devel/ode/distinfo b/devel/ode/distinfo
index b31a3dc4dbb..c7e99390367 100644
--- a/devel/ode/distinfo
+++ b/devel/ode/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2006/02/10 20:35:28 adam Exp $
+$NetBSD: distinfo,v 1.5 2006/03/19 15:05:39 joerg Exp $
SHA1 (ode-0.5.tgz) = f13756f1192d24101b6d1a3c14feb43efbf0b281
RMD160 (ode-0.5.tgz) = 3410a842731c1bb24f306f4d23509533664321aa
Size (ode-0.5.tgz) = 1710720 bytes
SHA1 (patch-aa) = 216a15a8ebfd7195215e1396ac94c4508fafbf30
+SHA1 (patch-ab) = 87b7914946fca9362ab7334525b6c982b9981cad
diff --git a/devel/ode/patches/patch-ab b/devel/ode/patches/patch-ab
new file mode 100644
index 00000000000..0fb00020c33
--- /dev/null
+++ b/devel/ode/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2006/03/19 15:05:39 joerg Exp $
+
+--- ode/src/timer.cpp.orig 2006-03-19 14:41:45.000000000 +0000
++++ ode/src/timer.cpp
+@@ -118,8 +118,10 @@ static inline void serialize()
+ {
+ asm volatile (
+ "mov $0,%%eax\n"
++ "pushl %%ebx\n"
+ "cpuid\n"
+- : : : "%eax","%ebx","%ecx","%edx","cc","memory");
++ "popl %%ebx\n"
++ : : : "%eax","%ecx","%edx","cc","memory");
+ }
+
+