Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio/files: pulseaudio-0.9.19-fweb.patch
Date: Wed, 07 Oct 2009 17:43:22
Message-Id: E1MvaXn-0007lH-MM@stork.gentoo.org
1 flameeyes 09/10/07 17:43:19
2
3 Added: pulseaudio-0.9.19-fweb.patch
4 Log:
5 Fix build with -fweb compiler flag (bug #287391).
6 (Portage version: 2.2_rc44/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-sound/pulseaudio/files/pulseaudio-0.9.19-fweb.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/files/pulseaudio-0.9.19-fweb.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/files/pulseaudio-0.9.19-fweb.patch?rev=1.1&content-type=text/plain
13
14 Index: pulseaudio-0.9.19-fweb.patch
15 ===================================================================
16 From 8ec304d2d1e956cc3f5f35437ac4fe580b36f004 Mon Sep 17 00:00:00 2001
17 From: =?UTF-8?q?Diego=20Elio=20'Flameeyes'=20Petten=C3=B2?= <flameeyes@×××××.com>
18 Date: Wed, 7 Oct 2009 19:31:11 +0200
19 Subject: [PATCH] Fix build when using -fweb, accept both register and memory constraints.
20
21 This was reported as Gentoo bug #287391 by Torsten Kaiser, and the fix was
22 suggested by Mike Frysinger.
23 ---
24 src/pulsecore/svolume_mmx.c | 4 ++--
25 src/pulsecore/svolume_sse.c | 4 ++--
26 2 files changed, 4 insertions(+), 4 deletions(-)
27
28 diff --git a/src/pulsecore/svolume_mmx.c b/src/pulsecore/svolume_mmx.c
29 index 1768eb5..745c7de 100644
30 --- a/src/pulsecore/svolume_mmx.c
31 +++ b/src/pulsecore/svolume_mmx.c
32 @@ -152,7 +152,7 @@ pa_volume_s16ne_mmx (int16_t *samples, int32_t *volumes, unsigned channels, unsi
33 " emms \n\t"
34
35 : "+r" (samples), "+r" (volumes), "+r" (length), "=D" ((pa_reg_x86)channel), "=&r" (temp)
36 - : "X" ((pa_reg_x86)channels)
37 + : "rm" ((pa_reg_x86)channels)
38 : "cc"
39 );
40 }
41 @@ -228,7 +228,7 @@ pa_volume_s16re_mmx (int16_t *samples, int32_t *volumes, unsigned channels, unsi
42 " emms \n\t"
43
44 : "+r" (samples), "+r" (volumes), "+r" (length), "=D" ((pa_reg_x86)channel), "=&r" (temp)
45 - : "X" ((pa_reg_x86)channels)
46 + : "rm" ((pa_reg_x86)channels)
47 : "cc"
48 );
49 }
50 diff --git a/src/pulsecore/svolume_sse.c b/src/pulsecore/svolume_sse.c
51 index ab9394f..1cc4e0a 100644
52 --- a/src/pulsecore/svolume_sse.c
53 +++ b/src/pulsecore/svolume_sse.c
54 @@ -149,7 +149,7 @@ pa_volume_s16ne_sse2 (int16_t *samples, int32_t *volumes, unsigned channels, uns
55 "8: \n\t"
56
57 : "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
58 - : "X" ((pa_reg_x86)channels)
59 + : "rm" ((pa_reg_x86)channels)
60 : "cc"
61 );
62 }
63 @@ -237,7 +237,7 @@ pa_volume_s16re_sse2 (int16_t *samples, int32_t *volumes, unsigned channels, uns
64 "8: \n\t"
65
66 : "+r" (samples), "+r" (volumes), "+r" (length), "=D" (channel), "=&r" (temp)
67 - : "X" ((pa_reg_x86)channels)
68 + : "rm" ((pa_reg_x86)channels)
69 : "cc"
70 );
71 }
72 --
73 1.6.5.rc2