annotate src/build-gcc-2-intrinsics.patch @ 3684:0ea89e795112

gcc: update to 4.9.1 from mxe_devel. * src/build-gcc-1-mingw-float.patch: add patch * src/build-gcc-2-intrinsics.patch: add patch * src/build-gcc.mk: update version * src/native-gcc.mk: update version. * dist-files.mk: update to include build-gcc-1-mingw-float.patch, uild-gcc-2-intrinsics.patch
author John Donoghue
date Fri, 08 Aug 2014 11:38:44 -0400
parents
children eba1c6e9cbb8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3684
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
1 # This file is part of MXE.
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
2 # See index.html for further information.
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
3
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
4 This patch has been taken from:
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56038
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
6
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
7 diff --git a/gcc/config/i386/adxintrin.h b/gcc/config/i386/adxintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
8 index 6118900..a83410d 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
9 --- a/gcc/config/i386/adxintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
10 +++ b/gcc/config/i386/adxintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
11 @@ -28,6 +28,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
12 #ifndef _ADXINTRIN_H_INCLUDED
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
13 #define _ADXINTRIN_H_INCLUDED
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
14
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
15 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
16 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
17 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
18 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
19 extern __inline unsigned char
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
20 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
21 _addcarryx_u32 (unsigned char __CF, unsigned int __X,
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
22 @@ -46,4 +50,8 @@ _addcarryx_u64 (unsigned char __CF, unsigned long __X,
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
23 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
24 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
25
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
26 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
27 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
28 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
29 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
30 #endif /* _ADXINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
31 diff --git a/gcc/config/i386/ammintrin.h b/gcc/config/i386/ammintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
32 index a89b204..a370eb0 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
33 --- a/gcc/config/i386/ammintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
34 +++ b/gcc/config/i386/ammintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
35 @@ -36,6 +36,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
36 #define __DISABLE_SSE4A__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
37 #endif /* __SSE4A__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
38
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
39 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
40 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
41 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
42 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
43 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
44 _mm_stream_sd (double * __P, __m128d __Y)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
45 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
46 @@ -85,6 +89,10 @@ _mm_inserti_si64(__m128i __X, __m128i __Y, unsigned const int __I, unsigned cons
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
47 (unsigned int)(I), (unsigned int)(L)))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
48 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
49
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
50 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
51 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
52 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
53 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
54 #ifdef __DISABLE_SSE4A__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
55 #undef __DISABLE_SSE4A__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
56 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
57 diff --git a/gcc/config/i386/avx2intrin.h b/gcc/config/i386/avx2intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
58 index d04c972..9302273 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
59 --- a/gcc/config/i386/avx2intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
60 +++ b/gcc/config/i386/avx2intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
61 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
62 #define __DISABLE_AVX2__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
63 #endif /* __AVX2__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
64
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
65 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
66 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
67 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
68 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
69 /* Sum absolute 8-bit integer difference of adjacent groups of 4
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
70 byte integers in the first 2 operands. Starting offsets within
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
71 operands are determined by the 3rd mask operand. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
72 @@ -1887,3 +1891,8 @@ _mm256_mask_i64gather_epi32 (__m128i src, int const *base,
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
73 #endif /* __DISABLE_AVX2__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
74
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
75 #endif /* _AVX2INTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
76 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
77 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
78 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
79 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
80 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
81 diff --git a/gcc/config/i386/avxintrin.h b/gcc/config/i386/avxintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
82 index 2ea327c..32591da 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
83 --- a/gcc/config/i386/avxintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
84 +++ b/gcc/config/i386/avxintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
85 @@ -37,6 +37,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
86 #define __DISABLE_AVX__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
87 #endif /* __AVX__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
88
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
89 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
90 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
91 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
92 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
93 /* Internal data types for implementing the intrinsics. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
94 typedef double __v4df __attribute__ ((__vector_size__ (32)));
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
95 typedef float __v8sf __attribute__ ((__vector_size__ (32)));
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
96 @@ -1461,3 +1465,8 @@ _mm256_castsi128_si256 (__m128i __A)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
97 #endif /* __DISABLE_AVX__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
98
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
99 #endif /* _AVXINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
100 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
101 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
102 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
103 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
104 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
105 diff --git a/gcc/config/i386/bmi2intrin.h b/gcc/config/i386/bmi2intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
106 index ff96296..b01e1e1 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
107 --- a/gcc/config/i386/bmi2intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
108 +++ b/gcc/config/i386/bmi2intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
109 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
110 #define __DISABLE_BMI2__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
111 #endif /* __BMI2__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
112
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
113 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
114 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
115 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
116 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
117 extern __inline unsigned int
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
118 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
119 _bzhi_u32 (unsigned int __X, unsigned int __Y)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
120 @@ -106,4 +110,8 @@ _mulx_u32 (unsigned int __X, unsigned int __Y, unsigned int *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
121 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
122 #endif /* __DISABLE_BMI2__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
123
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
124 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
125 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
126 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
127 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
128 #endif /* _BMI2INTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
129 diff --git a/gcc/config/i386/bmiintrin.h b/gcc/config/i386/bmiintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
130 index b2d7c60..c8ad38a 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
131 --- a/gcc/config/i386/bmiintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
132 +++ b/gcc/config/i386/bmiintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
133 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
134 #define __DISABLE_BMI__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
135 #endif /* __BMI__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
136
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
137 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
138 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
139 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
140 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
141 extern __inline unsigned short __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
142 __tzcnt_u16 (unsigned short __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
143 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
144 @@ -181,4 +185,8 @@ _tzcnt_u64 (unsigned long long __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
145 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
146 #endif /* __DISABLE_BMI__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
147
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
148 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
149 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
150 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
151 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
152 #endif /* _BMIINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
153 diff --git a/gcc/config/i386/cpuid.h b/gcc/config/i386/cpuid.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
154 index 8c323ae..52047e3 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
155 --- a/gcc/config/i386/cpuid.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
156 +++ b/gcc/config/i386/cpuid.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
157 @@ -21,6 +21,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
158 * <http://www.gnu.org/licenses/>.
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
159 */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
160
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
161 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
162 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
163 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
164 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
165 /* %ecx */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
166 #define bit_SSE3 (1 << 0)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
167 #define bit_PCLMUL (1 << 1)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
168 @@ -275,3 +279,8 @@ __get_cpuid (unsigned int __level,
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
169 __cpuid (__level, *__eax, *__ebx, *__ecx, *__edx);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
170 return 1;
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
171 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
172 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
173 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
174 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
175 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
176 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
177 diff --git a/gcc/config/i386/emmintrin.h b/gcc/config/i386/emmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
178 index a2bdf0e..2c4af53 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
179 --- a/gcc/config/i386/emmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
180 +++ b/gcc/config/i386/emmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
181 @@ -36,6 +36,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
182 #define __DISABLE_SSE2__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
183 #endif /* __SSE2__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
184
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
185 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
186 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
187 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
188 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
189 /* SSE2 */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
190 typedef double __v2df __attribute__ ((__vector_size__ (16)));
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
191 typedef long long __v2di __attribute__ ((__vector_size__ (16)));
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
192 @@ -1515,6 +1519,10 @@ _mm_castps_pd(__m128 __A)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
193 return (__m128d) __A;
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
194 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
195
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
196 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
197 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
198 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
199 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
200 extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
201 _mm_castps_si128(__m128 __A)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
202 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
203 diff --git a/gcc/config/i386/f16cintrin.h b/gcc/config/i386/f16cintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
204 index 1181f8b..5cc37dd 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
205 --- a/gcc/config/i386/f16cintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
206 +++ b/gcc/config/i386/f16cintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
207 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
208 #define __DISABLE_F16C__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
209 #endif /* __F16C__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
210
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
211 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
212 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
213 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
214 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
215 extern __inline float __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
216 _cvtsh_ss (unsigned short __S)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
217 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
218 @@ -95,4 +99,8 @@ _mm256_cvtps_ph (__m256 __A, const int __I)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
219 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
220 #endif /* __DISABLE_F16C__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
221
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
222 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
223 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
224 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
225 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
226 #endif /* _F16CINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
227 diff --git a/gcc/config/i386/fma4intrin.h b/gcc/config/i386/fma4intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
228 index e1bdef7..0ee2bf8 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
229 --- a/gcc/config/i386/fma4intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
230 +++ b/gcc/config/i386/fma4intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
231 @@ -37,6 +37,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
232 #define __DISABLE_FMA4__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
233 #endif /* __FMA4__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
234
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
235 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
236 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
237 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
238 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
239 /* 128b Floating point multiply/add type instructions. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
240 extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
241 _mm_macc_ps (__m128 __A, __m128 __B, __m128 __C)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
242 @@ -233,6 +237,10 @@ _mm256_msubadd_pd (__m256d __A, __m256d __B, __m256d __C)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
243 return (__m256d) __builtin_ia32_vfmaddsubpd256 ((__v4df)__A, (__v4df)__B, -(__v4df)__C);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
244 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
245
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
246 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
247 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
248 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
249 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
250 #ifdef __DISABLE_FMA4__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
251 #undef __DISABLE_FMA4__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
252 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
253 diff --git a/gcc/config/i386/fmaintrin.h b/gcc/config/i386/fmaintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
254 index bfbb75d..806ff8e 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
255 --- a/gcc/config/i386/fmaintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
256 +++ b/gcc/config/i386/fmaintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
257 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
258 #define __DISABLE_FMA__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
259 #endif /* __FMA__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
260
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
261 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
262 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
263 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
264 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
265 extern __inline __m128d
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
266 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
267 _mm_fmadd_pd (__m128d __A, __m128d __B, __m128d __C)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
268 @@ -294,6 +298,10 @@ _mm256_fmsubadd_ps (__m256 __A, __m256 __B, __m256 __C)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
269 -(__v8sf)__C);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
270 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
271
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
272 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
273 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
274 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
275 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
276 #ifdef __DISABLE_FMA__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
277 #undef __DISABLE_FMA__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
278 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
279 diff --git a/gcc/config/i386/fxsrintrin.h b/gcc/config/i386/fxsrintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
280 index 98e73ee..34cc3cb 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
281 --- a/gcc/config/i386/fxsrintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
282 +++ b/gcc/config/i386/fxsrintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
283 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
284 #define __DISABLE_FXSR__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
285 #endif /* __FXSR__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
286
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
287 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
288 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
289 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
290 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
291 extern __inline void
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
292 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
293 _fxsave (void *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
294 @@ -70,4 +74,8 @@ _fxrstor64 (void *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
295 #endif /* __DISABLE_FXSR__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
296
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
297
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
298 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
299 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
300 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
301 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
302 #endif /* _FXSRINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
303 diff --git a/gcc/config/i386/gmm_malloc.h b/gcc/config/i386/gmm_malloc.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
304 index 516b13b..c55db44 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
305 --- a/gcc/config/i386/gmm_malloc.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
306 +++ b/gcc/config/i386/gmm_malloc.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
307 @@ -27,6 +27,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
308 #include <stdlib.h>
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
309 #include <errno.h>
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
310
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
311 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
312 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
313 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
314 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
315 static __inline__ void*
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
316 _mm_malloc (size_t size, size_t align)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
317 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
318 @@ -71,4 +75,8 @@ _mm_free (void * aligned_ptr)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
319 free (((void **) aligned_ptr) [-1]);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
320 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
321
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
322 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
323 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
324 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
325 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
326 #endif /* _MM_MALLOC_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
327 diff --git a/gcc/config/i386/ia32intrin.h b/gcc/config/i386/ia32intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
328 index 5e7c893..a7fa538 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
329 --- a/gcc/config/i386/ia32intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
330 +++ b/gcc/config/i386/ia32intrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
331 @@ -25,6 +25,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
332 # error "Never use <ia32intrin.h> directly; include <x86intrin.h> instead."
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
333 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
334
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
335 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
336 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
337 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
338 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
339 /* 32bit bsf */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
340 extern __inline int
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
341 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
342 @@ -291,3 +295,7 @@ __writeeflags (unsigned int X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
343 #define _rotwr(a,b) __rorw((a), (b))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
344 #define _rotl(a,b) __rold((a), (b))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
345 #define _rotr(a,b) __rord((a), (b))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
346 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
347 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
348 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
349 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
350 diff --git a/gcc/config/i386/immintrin.h b/gcc/config/i386/immintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
351 index 73b4859..49a03e4 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
352 --- a/gcc/config/i386/immintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
353 +++ b/gcc/config/i386/immintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
354 @@ -78,6 +78,10 @@ _rdrand16_step (unsigned short *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
355 return __builtin_ia32_rdrand16_step (__P);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
356 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
357
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
358 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
359 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
360 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
361 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
362 extern __inline int
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
363 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
364 _rdrand32_step (unsigned int *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
365 @@ -174,4 +178,8 @@ _rdrand64_step (unsigned long long *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
366
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
367 #endif /* __x86_64__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
368
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
369 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
370 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
371 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
372 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
373 #endif /* _IMMINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
374 diff --git a/gcc/config/i386/lwpintrin.h b/gcc/config/i386/lwpintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
375 index 1cd046a..26d65f1 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
376 --- a/gcc/config/i386/lwpintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
377 +++ b/gcc/config/i386/lwpintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
378 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
379 #define __DISABLE_LWP__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
380 #endif /* __LWP__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
381
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
382 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
383 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
384 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
385 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
386 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
387 __llwpcb (void *pcbAddress)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
388 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
389 @@ -71,6 +75,9 @@ __lwpval64 (unsigned long long data2, unsigned int data1, unsigned int flags)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
390 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
391 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
392
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
393 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
394 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
395 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
396
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
397 #ifdef __OPTIMIZE__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
398 extern __inline unsigned char __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
399 diff --git a/gcc/config/i386/lzcntintrin.h b/gcc/config/i386/lzcntintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
400 index b680a35..d292f24 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
401 --- a/gcc/config/i386/lzcntintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
402 +++ b/gcc/config/i386/lzcntintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
403 @@ -35,6 +35,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
404 #define __DISABLE_LZCNT__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
405 #endif /* __LZCNT__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
406
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
407 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
408 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
409 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
410 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
411 extern __inline unsigned short __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
412 __lzcnt16 (unsigned short __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
413 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
414 @@ -72,4 +76,8 @@ _lzcnt_u64 (unsigned long long __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
415 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
416 #endif /* __DISABLE_LZCNT__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
417
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
418 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
419 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
420 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
421 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
422 #endif /* _LZCNTINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
423 diff --git a/gcc/config/i386/mm3dnow.h b/gcc/config/i386/mm3dnow.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
424 index bf847f9..464e98f 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
425 --- a/gcc/config/i386/mm3dnow.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
426 +++ b/gcc/config/i386/mm3dnow.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
427 @@ -36,6 +36,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
428 #define __DISABLE_3dNOW__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
429 #endif /* __3dNOW__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
430
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
431 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
432 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
433 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
434 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
435 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
436 _m_femms (void)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
437 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
438 @@ -210,6 +214,10 @@ _m_pswapd (__m64 __A)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
439
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
440 #endif /* __3dNOW_A__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
441
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
442 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
443 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
444 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
445 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
446 #ifdef __DISABLE_3dNOW__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
447 #undef __DISABLE_3dNOW__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
448 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
449 diff --git a/gcc/config/i386/mmintrin.h b/gcc/config/i386/mmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
450 index b351200..eaee690 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
451 --- a/gcc/config/i386/mmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
452 +++ b/gcc/config/i386/mmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
453 @@ -33,6 +33,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
454 #define __DISABLE_MMX__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
455 #endif /* __MMX__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
456
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
457 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
458 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
459 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
460 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
461 /* The Intel API is flexible enough that we must allow aliasing with other
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
462 vector types, and their scalar components. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
463 typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__));
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
464 @@ -939,4 +943,8 @@ _mm_set1_pi8 (char __b)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
465 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
466 #endif /* __DISABLE_MMX__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
467
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
468 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
469 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
470 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
471 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
472 #endif /* _MMINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
473 diff --git a/gcc/config/i386/pmm_malloc.h b/gcc/config/i386/pmm_malloc.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
474 index 3be2f35..f8c99c7 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
475 --- a/gcc/config/i386/pmm_malloc.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
476 +++ b/gcc/config/i386/pmm_malloc.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
477 @@ -34,6 +34,10 @@ extern int posix_memalign (void **, size_t, size_t);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
478 extern "C" int posix_memalign (void **, size_t, size_t) throw ();
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
479 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
480
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
481 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
482 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
483 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
484 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
485 static __inline void *
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
486 _mm_malloc (size_t size, size_t alignment)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
487 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
488 @@ -54,4 +58,8 @@ _mm_free (void * ptr)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
489 free (ptr);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
490 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
491
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
492 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
493 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
494 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
495 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
496 #endif /* _MM_MALLOC_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
497 diff --git a/gcc/config/i386/pmmintrin.h b/gcc/config/i386/pmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
498 index 6a79500..2c98a85 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
499 --- a/gcc/config/i386/pmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
500 +++ b/gcc/config/i386/pmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
501 @@ -36,6 +36,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
502 #define __DISABLE_SSE3__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
503 #endif /* __SSE3__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
504
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
505 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
506 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
507 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
508 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
509 /* Additional bits in the MXCSR. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
510 #define _MM_DENORMALS_ZERO_MASK 0x0040
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
511 #define _MM_DENORMALS_ZERO_ON 0x0040
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
512 @@ -124,6 +128,10 @@ _mm_mwait (unsigned int __E, unsigned int __H)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
513 __builtin_ia32_mwait (__E, __H);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
514 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
515
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
516 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
517 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
518 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
519 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
520 #ifdef __DISABLE_SSE3__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
521 #undef __DISABLE_SSE3__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
522 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
523 diff --git a/gcc/config/i386/popcntintrin.h b/gcc/config/i386/popcntintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
524 index 41845d8..285e96a 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
525 --- a/gcc/config/i386/popcntintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
526 +++ b/gcc/config/i386/popcntintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
527 @@ -30,6 +30,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
528 #define __DISABLE_POPCNT__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
529 #endif /* __POPCNT__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
530
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
531 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
532 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
533 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
534 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
535 /* Calculate a number of bits set to 1. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
536 extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
537 _mm_popcnt_u32 (unsigned int __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
538 @@ -50,4 +54,8 @@ _mm_popcnt_u64 (unsigned long long __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
539 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
540 #endif /* __DISABLE_POPCNT__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
541
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
542 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
543 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
544 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
545 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
546 #endif /* _POPCNTINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
547 diff --git a/gcc/config/i386/prfchwintrin.h b/gcc/config/i386/prfchwintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
548 index b2f5772..f779a28 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
549 --- a/gcc/config/i386/prfchwintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
550 +++ b/gcc/config/i386/prfchwintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
551 @@ -28,10 +28,18 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
552 #ifndef _PRFCHWINTRIN_H_INCLUDED
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
553 #define _PRFCHWINTRIN_H_INCLUDED
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
554
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
555 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
556 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
557 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
558 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
559 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
560 _m_prefetchw (void *__P)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
561 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
562 __builtin_prefetch (__P, 1, 3 /* _MM_HINT_T0 */);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
563 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
564
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
565 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
566 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
567 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
568 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
569 #endif /* _PRFCHWINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
570 diff --git a/gcc/config/i386/rdseedintrin.h b/gcc/config/i386/rdseedintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
571 index 0ab18e5..98eb318 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
572 --- a/gcc/config/i386/rdseedintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
573 +++ b/gcc/config/i386/rdseedintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
574 @@ -35,6 +35,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
575 #endif /* __RDSEED__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
576
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
577
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
578 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
579 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
580 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
581 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
582 extern __inline int
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
583 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
584 _rdseed16_step (unsigned short *p)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
585 @@ -63,4 +67,8 @@ _rdseed64_step (unsigned long long *p)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
586 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
587 #endif /* __DISABLE_RDSEED__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
588
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
589 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
590 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
591 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
592 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
593 #endif /* _RDSEEDINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
594 diff --git a/gcc/config/i386/rtmintrin.h b/gcc/config/i386/rtmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
595 index ac40d22..3aa8246 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
596 --- a/gcc/config/i386/rtmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
597 +++ b/gcc/config/i386/rtmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
598 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
599 #define __DISABLE_RTM__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
600 #endif /* __RTM__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
601
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
602 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
603 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
604 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
605 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
606 #define _XBEGIN_STARTED (~0u)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
607 #define _XABORT_EXPLICIT (1 << 0)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
608 #define _XABORT_RETRY (1 << 1)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
609 @@ -81,4 +85,8 @@ _xabort (const unsigned int imm)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
610 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
611 #endif /* __DISABLE_RTM__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
612
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
613 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
614 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
615 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
616 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
617 #endif /* _RTMINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
618 diff --git a/gcc/config/i386/smmintrin.h b/gcc/config/i386/smmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
619 index 886ace4..168b903 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
620 --- a/gcc/config/i386/smmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
621 +++ b/gcc/config/i386/smmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
622 @@ -37,6 +37,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
623 #define __DISABLE_SSE4_1__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
624 #endif /* __SSE4_1__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
625
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
626 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
627 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
628 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
629 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
630 /* Rounding mode macros. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
631 #define _MM_FROUND_TO_NEAREST_INT 0x00
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
632 #define _MM_FROUND_TO_NEG_INF 0x01
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
633 @@ -820,6 +824,11 @@ _mm_cmpgt_epi64 (__m128i __X, __m128i __Y)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
634 #pragma GCC push_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
635 #pragma GCC target("sse4.2")
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
636 #define __DISABLE_SSE4_2__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
637 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
638 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
639 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
640 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
641 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
642 #endif /* __SSE4_1__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
643
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
644 /* Accumulate CRC32 (polynomial 0x11EDC6F41) value. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
645 diff --git a/gcc/config/i386/tbmintrin.h b/gcc/config/i386/tbmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
646 index 871f532..744b9ca 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
647 --- a/gcc/config/i386/tbmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
648 +++ b/gcc/config/i386/tbmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
649 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
650 #define __DISABLE_TBM__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
651 #endif /* __TBM__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
652
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
653 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
654 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
655 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
656 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
657 #ifdef __OPTIMIZE__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
658 extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
659 __bextri_u32 (unsigned int __X, const unsigned int __I)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
660 @@ -177,4 +181,8 @@ __tzmsk_u64 (unsigned long long __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
661 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
662 #endif /* __DISABLE_TBM__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
663
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
664 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
665 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
666 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
667 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
668 #endif /* _TBMINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
669 diff --git a/gcc/config/i386/tmmintrin.h b/gcc/config/i386/tmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
670 index 89556d2..f89e33c 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
671 --- a/gcc/config/i386/tmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
672 +++ b/gcc/config/i386/tmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
673 @@ -36,6 +36,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
674 #define __DISABLE_SSSE3__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
675 #endif /* __SSSE3__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
676
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
677 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
678 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
679 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
680 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
681 extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
682 _mm_hadd_epi16 (__m128i __X, __m128i __Y)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
683 {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
684 @@ -241,6 +245,10 @@ _mm_abs_pi32 (__m64 __X)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
685 return (__m64) __builtin_ia32_pabsd ((__v2si)__X);
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
686 }
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
687
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
688 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
689 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
690 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
691 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
692 #ifdef __DISABLE_SSSE3__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
693 #undef __DISABLE_SSSE3__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
694 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
695 diff --git a/gcc/config/i386/wmmintrin.h b/gcc/config/i386/wmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
696 index 2002375..a22bb07 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
697 --- a/gcc/config/i386/wmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
698 +++ b/gcc/config/i386/wmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
699 @@ -30,6 +30,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
700 /* We need definitions from the SSE2 header file. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
701 #include <emmintrin.h>
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
702
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
703 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
704 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
705 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
706 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
707 /* AES */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
708
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
709 #ifndef __AES__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
710 @@ -124,6 +128,10 @@ _mm_clmulepi64_si128 (__m128i __X, __m128i __Y, const int __I)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
711 (__v2di)(__m128i)(Y), (int)(I)))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
712 #endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
713
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
714 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
715 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
716 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
717 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
718 #ifdef __DISABLE_PCLMUL__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
719 #undef __DISABLE_PCLMUL__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
720 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
721 diff --git a/gcc/config/i386/xmmintrin.h b/gcc/config/i386/xmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
722 index a3824e7..ee1a1fc 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
723 --- a/gcc/config/i386/xmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
724 +++ b/gcc/config/i386/xmmintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
725 @@ -64,6 +64,10 @@ _mm_prefetch (const void *__P, enum _mm_hint __I)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
726 #define __DISABLE_SSE__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
727 #endif /* __SSE__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
728
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
729 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
730 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
731 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
732 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
733 /* The Intel API is flexible enough that we must allow aliasing with other
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
734 vector types, and their scalar components. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
735 typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
736 @@ -1254,6 +1258,10 @@ do { \
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
737 (row3) = __builtin_ia32_movhlps (__t3, __t2); \
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
738 } while (0)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
739
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
740 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
741 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
742 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
743 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
744 /* For backward source compatibility. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
745 # include <emmintrin.h>
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
746
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
747 diff --git a/gcc/config/i386/xopintrin.h b/gcc/config/i386/xopintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
748 index cc82bc5..d567a98 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
749 --- a/gcc/config/i386/xopintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
750 +++ b/gcc/config/i386/xopintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
751 @@ -36,6 +36,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
752 #define __DISABLE_XOP__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
753 #endif /* __XOP__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
754
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
755 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
756 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
757 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
758 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
759 /* Integer multiply/add intructions. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
760 extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
761 _mm_maccs_epi16(__m128i __A, __m128i __B, __m128i __C)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
762 @@ -836,6 +840,10 @@ _mm256_permute2_ps (__m256 __X, __m256 __Y, __m256i __C, const int __I)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
763 (int)(I)))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
764 #endif /* __OPTIMIZE__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
765
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
766 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
767 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
768 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
769 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
770 #ifdef __DISABLE_XOP__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
771 #undef __DISABLE_XOP__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
772 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
773 diff --git a/gcc/config/i386/xsaveintrin.h b/gcc/config/i386/xsaveintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
774 index 47be25f..be2caea 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
775 --- a/gcc/config/i386/xsaveintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
776 +++ b/gcc/config/i386/xsaveintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
777 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
778 #define __DISABLE_XSAVE__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
779 #endif /* __XSAVE__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
780
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
781 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
782 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
783 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
784 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
785 extern __inline void
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
786 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
787 _xsave (void *__P, long long __M)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
788 @@ -69,4 +73,8 @@ _xrstor64 (void *__P, long long __M)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
789 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
790 #endif /* __DISABLE_XSAVE__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
791
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
792 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
793 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
794 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
795 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
796 #endif /* _XSAVEINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
797 diff --git a/gcc/config/i386/xsaveoptintrin.h b/gcc/config/i386/xsaveoptintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
798 index d7534b4..90eeb45 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
799 --- a/gcc/config/i386/xsaveoptintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
800 +++ b/gcc/config/i386/xsaveoptintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
801 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
802 #define __DISABLE_XSAVEOPT__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
803 #endif /* __XSAVEOPT__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
804
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
805 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
806 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
807 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
808 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
809 extern __inline void
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
810 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
811 _xsaveopt (void *__P, long long __M)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
812 @@ -55,4 +59,8 @@ _xsaveopt64 (void *__P, long long __M)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
813 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
814 #endif /* __DISABLE_XSAVEOPT__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
815
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
816 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
817 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
818 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
819 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
820 #endif /* _XSAVEOPTINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
821 diff --git a/gcc/config/i386/xtestintrin.h b/gcc/config/i386/xtestintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
822 index ba79e5c..864b727 100644
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
823 --- a/gcc/config/i386/xtestintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
824 +++ b/gcc/config/i386/xtestintrin.h
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
825 @@ -34,6 +34,10 @@
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
826 #define __DISABLE_RTM__
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
827 #endif /* __RTM__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
828
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
829 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
830 +extern "C" {
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
831 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
832 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
833 /* Return non-zero if the instruction executes inside an RTM or HLE code
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
834 region. Return zero otherwise. */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
835 extern __inline int
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
836 @@ -48,4 +52,8 @@ _xtest (void)
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
837 #pragma GCC pop_options
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
838 #endif /* __DISABLE_RTM__ */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
839
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
840 +#ifdef __cplusplus
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
841 +}
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
842 +#endif
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
843 +
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
844 #endif /* _XTESTINTRIN_H_INCLUDED */
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
845 --
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
846 1.8.4.5
0ea89e795112 gcc: update to 4.9.1 from mxe_devel.
John Donoghue
parents:
diff changeset
847