View | Details | Raw Unified | Return to bug 236411
Collapse All | Expand All

(-)Makefile (-7 lines)
Lines 19-31 Link Here
19
GH_ACCOUNT=	moddevices
19
GH_ACCOUNT=	moddevices
20
GH_TAGNAME=	072e2fe
20
GH_TAGNAME=	072e2fe
21
21
22
# It suffers from the regression in clang-6: https://bugs.llvm.org/show_bug.cgi?id=36916
23
LLVM_VER=	50
24
BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
25
CPP=		clang-cpp${LLVM_VER}
26
CC=		clang${LLVM_VER}
27
CXX=		clang++${LLVM_VER}
28
29
.if exists(/usr/lib/libstdc++.so)
22
.if exists(/usr/lib/libstdc++.so)
30
CXXFLAGS+=	-stdlib=libstdc++
23
CXXFLAGS+=	-stdlib=libstdc++
31
LDFLAGS+=	-stdlib=libstdc++
24
LDFLAGS+=	-stdlib=libstdc++
(-)files/patch-dsp_v4f.h (+16 lines)
Line 0 Link Here
1
--- dsp/v4f.h.orig
2
+++ dsp/v4f.h
3
@@ -150,10 +150,10 @@
4
 			{
5
 				v4f_t *y = data();
6
 				v4f_t w = -v4f_pi * f;
7
-				y[0] = v4f_map<__builtin_sinf> (w);
8
-				y[1] = v4f_map<__builtin_sinf> (v4f_2 * w);
9
+				y[0] = v4f_map<sinf> (w);
10
+				y[1] = v4f_map<sinf> (v4f_2 * w);
11
 				/* b in above scalar implementation is y[2] in the flat data */
12
-				y[2] = v4f_2 * v4f_map<__builtin_cosf> (w); /* b */
13
+				y[2] = v4f_2 * v4f_map<cosf> (w); /* b */
14
 				z = 0;
15
 			}
16
 
(-)files/patch-dsp_v4f__IIR2.h (+25 lines)
Line 0 Link Here
1
--- dsp/v4f_IIR2.h.orig
2
+++ dsp/v4f_IIR2.h
3
@@ -45,8 +45,8 @@
4
 			{
5
 				v4f_t w = v4f_2pi * f;
6
 
7
-				sin = v4f_map<__builtin_sinf> (w);
8
-				cos = v4f_map<__builtin_cosf> (w);
9
+				sin = v4f_map<sinf> (w);
10
+				cos = v4f_map<cosf> (w);
11
 
12
 				alpha = sin / (v4f_2 * Q);
13
 			}
14
@@ -549,9 +549,9 @@
15
 			{
16
 				v4f_t * a = state + i*Item;
17
 				f *= v4f_2pi;
18
-				a[0] = v4f_map<__builtin_sinf> (f);
19
+				a[0] = v4f_map<sinf> (f);
20
 				a[0] *= gain;
21
-				a[5] = v4f_map<__builtin_cosf> (f);
22
+				a[5] = v4f_map<cosf> (f);
23
 				set_r (i, r);
24
 			}
25
 		void set_r (int i, v4f_t r)

Return to bug 236411