Magellan Linux

Contents of /trunk/lame/patches/lame-3.99.5-gcc5-sse.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2736 - (show annotations) (download)
Tue Dec 8 12:32:05 2015 UTC (8 years, 4 months ago) by niro
File size: 1076 byte(s)
-fixed build with gcc5 on i686 arch
1 xmm_quantize_sub.c: In function 'init_xrpow_core_sse':
2 xmm_quantize_sub.c:65:18: warning: SSE vector return without SSE enabled changes the ABI [-W
3 psabi]
4 const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
5 ^
6 In file included from xmm_quantize_sub.c:37:0:
7 /usr/lib/gcc/i686-w64-mingw32/4.9.0/include/xmmintrin.h:933:1: error: inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch
8 _mm_loadu_ps (float const *__P)
9 ^
10 xmm_quantize_sub.c:65:18: error: called from here
11 const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]);
12 ^
13 --- lame/libmp3lame/vector/xmm_quantize_sub.c.orig 2014-06-08 12:16:19.455468042 -0700
14 +++ lame/libmp3lame/vector/xmm_quantize_sub.c 2014-06-08 12:16:09.592356980 -0700
15 @@ -35,6 +35,7 @@
16 #ifdef HAVE_XMMINTRIN_H
17
18 #include <xmmintrin.h>
19 +#pragma GCC target("sse")
20
21 typedef union {
22 int32_t _i_32[4]; /* unions are initialized by its first member */
23 @@ -124,6 +125,7 @@
24 }
25
26
27 +#pragma GCC target("sse2")
28 void
29 fht_SSE2(FLOAT * fz, int n)
30 {