summarylogtreecommitdiffstats
path: root/gcc-make-xmmintrin-header-cplusplus-compatible.patch
diff options
context:
space:
mode:
authorfelix2015-09-06 21:37:33 +0200
committerfelix2015-09-06 21:40:08 +0200
commit99e4ac54e6ed55f5aeee8650c4301d5373b0fc0d (patch)
treeff17c5d64395fba05cf17270ab98d0d08ee10cb6 /gcc-make-xmmintrin-header-cplusplus-compatible.patch
downloadaur-99e4ac54e6ed55f5aeee8650c4301d5373b0fc0d.tar.gz
Initial version: 5.2.0-1
Diffstat (limited to 'gcc-make-xmmintrin-header-cplusplus-compatible.patch')
-rw-r--r--gcc-make-xmmintrin-header-cplusplus-compatible.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc-make-xmmintrin-header-cplusplus-compatible.patch b/gcc-make-xmmintrin-header-cplusplus-compatible.patch
new file mode 100644
index 000000000000..c5ca43209848
--- /dev/null
+++ b/gcc-make-xmmintrin-header-cplusplus-compatible.patch
@@ -0,0 +1,24 @@
+--- gcc/config/i386/xmmintrin.h.orig 2013-01-18 14:57:27.762645582 +0100
++++ gcc/config/i386/xmmintrin.h 2013-01-18 14:58:27.604561940 +0100
+@@ -37,6 +37,10 @@
+ /* Get _mm_malloc () and _mm_free (). */
+ #include <mm_malloc.h>
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /* The Intel API is flexible enough that we must allow aliasing with other
+ vector types, and their scalar components. */
+ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__));
+@@ -1241,6 +1245,10 @@
+ (row3) = __builtin_ia32_movhlps (__t3, __t2); \
+ } while (0)
+
++#ifdef __cplusplus
++}
++#endif
++
+ /* For backward source compatibility. */
+ #ifdef __SSE2__
+ # include <emmintrin.h>