summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Tennis <caleb@gentoo.org>2005-03-09 13:03:30 +0000
committerCaleb Tennis <caleb@gentoo.org>2005-03-09 13:03:30 +0000
commit0b655483d4492c077a6c52f942aa9ef39d2ecb12 (patch)
treef25bee1510f688df15389cf4b6c7f0793daf12a4 /dev-util/callgrind/files
parentadded entry for >=dev-lang/ghc-6.3 (still in development) (diff)
downloadgentoo-2-0b655483d4492c077a6c52f942aa9ef39d2ecb12.tar.gz
gentoo-2-0b655483d4492c077a6c52f942aa9ef39d2ecb12.tar.bz2
gentoo-2-0b655483d4492c077a6c52f942aa9ef39d2ecb12.zip
adding a patch from bug #68140
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-util/callgrind/files')
-rw-r--r--dev-util/callgrind/files/callgrind-sim-pic.patch25
-rw-r--r--dev-util/callgrind/files/digest-callgrind-0.9.10-r11
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/callgrind/files/callgrind-sim-pic.patch b/dev-util/callgrind/files/callgrind-sim-pic.patch
new file mode 100644
index 000000000000..64b7d49235eb
--- /dev/null
+++ b/dev-util/callgrind/files/callgrind-sim-pic.patch
@@ -0,0 +1,25 @@
+--- callgrind-0.9.10/src/sim.c.orig 2005-01-28 11:40:35.000000000 +0100
++++ callgrind-0.9.10/src/sim.c 2005-01-28 11:50:00.000000000 +0100
+@@ -309,11 +309,22 @@
+
+ static __inline__ void cpuid(Int n, UInt *a, UInt *b, UInt *c, UInt *d)
+ {
++#ifdef __PIC__
++ __asm__ __volatile__ (
++ "pushl %%ebx\n\t"\
++ "cpuid\n\t"\
++ "movl %%ebx,%1\n\t"\
++ "popl %%ebx"
++ : "=a" (*a), "=r" (*b), "=c" (*c), "=d" (*d) /* output */
++ : "0" (n) /* input */
++ );
++#else
+ __asm__ __volatile__ (
+ "cpuid"
+ : "=a" (*a), "=b" (*b), "=c" (*c), "=d" (*d) /* output */
+ : "0" (n) /* input */
+ );
++#endif
+ }
+
+ static void micro_ops_warn(Int actual_size, Int used_size, Int line_size)
diff --git a/dev-util/callgrind/files/digest-callgrind-0.9.10-r1 b/dev-util/callgrind/files/digest-callgrind-0.9.10-r1
new file mode 100644
index 000000000000..ba9004c28cbf
--- /dev/null
+++ b/dev-util/callgrind/files/digest-callgrind-0.9.10-r1
@@ -0,0 +1 @@
+MD5 ddfd883491f7d564dca15a2e9336854f callgrind-0.9.10.tar.gz 255698