summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-07-21 15:10:11 +0000
committerjoerg <joerg@pkgsrc.org>2011-07-21 15:10:11 +0000
commit5b4c6ef36dc25c588f92a1250cf90771a37d31a4 (patch)
tree30cdbf0cbb1f99f91e349b7f0b87a919575d45c8 /audio
parent084d291ecc450dd9accd3809168f5f57e824d4c7 (diff)
downloadpkgsrc-5b4c6ef36dc25c588f92a1250cf90771a37d31a4.tar.gz
Remove a lvalue cast in asm() to fix build with clang.
Diffstat (limited to 'audio')
-rw-r--r--audio/pulseaudio/distinfo3
-rw-r--r--audio/pulseaudio/patches/patch-src_pulsecore_svolume_mmx.c24
2 files changed, 26 insertions, 1 deletions
diff --git a/audio/pulseaudio/distinfo b/audio/pulseaudio/distinfo
index 4d9d166bcc6..ab1db524fbc 100644
--- a/audio/pulseaudio/distinfo
+++ b/audio/pulseaudio/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.25 2011/05/21 15:32:59 wiz Exp $
+$NetBSD: distinfo,v 1.26 2011/07/21 15:10:11 joerg Exp $
SHA1 (pulseaudio-0.9.21.tar.gz) = 0309c97f7e0812e243c1bb80a4b74dc26369ac22
RMD160 (pulseaudio-0.9.21.tar.gz) = 6db0725253228b673a78cbfae4824fadce2198ed
@@ -20,3 +20,4 @@ SHA1 (patch-dc) = fe5f8e6eec89ec832d9d161fa0a201e64a841a0c
SHA1 (patch-dd) = bfccd97ecf3be1ae9ac41a642b356743e055550f
SHA1 (patch-de) = 3b8423a5936b8434de22fdd04ff2057dde09a2b8
SHA1 (patch-poll_c-build-fix) = f9a2e86275431c53257c596974a6973c8034b1f0
+SHA1 (patch-src_pulsecore_svolume_mmx.c) = ad1a1be7c1acf52c41447b2fb7d7dcd4c2da204b
diff --git a/audio/pulseaudio/patches/patch-src_pulsecore_svolume_mmx.c b/audio/pulseaudio/patches/patch-src_pulsecore_svolume_mmx.c
new file mode 100644
index 00000000000..0dd65f37d97
--- /dev/null
+++ b/audio/pulseaudio/patches/patch-src_pulsecore_svolume_mmx.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_pulsecore_svolume_mmx.c,v 1.1 2011/07/21 15:10:11 joerg Exp $
+
+Drop lvalue casts in assembler constraints as clang rejects those.
+
+--- src/pulsecore/svolume_mmx.c.orig 2011-07-20 12:49:46.000000000 +0000
++++ src/pulsecore/svolume_mmx.c
+@@ -153,7 +153,7 @@ pa_volume_s16ne_mmx (int16_t *samples, i
+ "6: \n\t"
+ " emms \n\t"
+
+- : "+r" (samples), "+r" (volumes), "+r" (length), "=D" ((pa_reg_x86)channel), "=&r" (temp)
++ : "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
+ : "rm" ((pa_reg_x86)channels)
+ : "cc"
+ );
+@@ -229,7 +229,7 @@ pa_volume_s16re_mmx (int16_t *samples, i
+ "6: \n\t"
+ " emms \n\t"
+
+- : "+r" (samples), "+r" (volumes), "+r" (length), "=D" ((pa_reg_x86)channel), "=&r" (temp)
++ : "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
+ : "rm" ((pa_reg_x86)channels)
+ : "cc"
+ );