summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-05-10 14:58:32 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-05-10 14:58:32 +0000
commit946511fedc38ea8fd71db8857376a6226a77bf9f (patch)
treef1158db0d97df74b23277ead5e92f4da1b73a1aa /media-sound/wavpack/files
parentStable for HPPA (bug #266671). (diff)
downloadgentoo-2-946511fedc38ea8fd71db8857376a6226a77bf9f.tar.gz
gentoo-2-946511fedc38ea8fd71db8857376a6226a77bf9f.tar.bz2
gentoo-2-946511fedc38ea8fd71db8857376a6226a77bf9f.zip
GCC 4.4 fix
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/wavpack/files')
-rw-r--r--media-sound/wavpack/files/wavpack-4.50.1-gcc44.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/media-sound/wavpack/files/wavpack-4.50.1-gcc44.patch b/media-sound/wavpack/files/wavpack-4.50.1-gcc44.patch
new file mode 100644
index 000000000000..8d28fcca37ba
--- /dev/null
+++ b/media-sound/wavpack/files/wavpack-4.50.1-gcc44.patch
@@ -0,0 +1,23 @@
+--- src/wavpack_local.h.orig 2009-04-07 10:34:58.000000000 -0400
++++ src/wavpack_local.h 2009-04-07 11:03:45.000000000 -0400
+@@ -745,9 +745,17 @@
+
+ #define _m_paddd(m1, m2) __builtin_ia32_paddd (m1, m2)
+ #define _m_pcmpeqd(m1, m2) __builtin_ia32_pcmpeqd (m1, m2)
+-#define _m_pslldi(m1, m2) __builtin_ia32_pslld (m1, m2)
+-#define _m_psradi(m1, m2) __builtin_ia32_psrad (m1, m2)
+-#define _m_psrldi(m1, m2) __builtin_ia32_psrld (m1, m2)
++
++#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __GNUC__ > 4
++# define _m_pslldi(m1, m2) __builtin_ia32_pslldi ((__m64)m1, m2)
++# define _m_psradi(m1, m2) __builtin_ia32_psradi ((__m64)m1, m2)
++# define _m_psrldi(m1, m2) __builtin_ia32_psrldi ((__m64)m1, m2)
++#else
++# define _m_pslldi(m1, m2) __builtin_ia32_pslld (m1, m2)
++# define _m_psradi(m1, m2) __builtin_ia32_psrad (m1, m2)
++# define _m_psrldi(m1, m2) __builtin_ia32_psrld (m1, m2)
++#endif
++
+ #define _m_psubd(m1, m2) __builtin_ia32_psubd (m1, m2)
+ #define _m_punpckhdq(m1, m2) __builtin_ia32_punpckhdq (m1, m2)
+ #define _m_punpckldq(m1, m2) __builtin_ia32_punpckldq (m1, m2)