| From 5acba903704742cacea4af9f338230e03f9ac049 Mon Sep 17 00:00:00 2001 |
| From: Erik van Pienbroek <epienbro@fedoraproject.org> |
| Date: Wed, 5 Aug 2015 23:36:21 +0100 |
| Subject: [PATCH 09/15] gcc: make xmmintrin header cplusplus compatible |
| [deprecated] |
| |
| Deprecated as-per: |
| http://marc.info/?l=fedora-extras-commits&m=138946782004553&w=2 |
| --- |
| gcc/config/i386/xmmintrin.h | 8 ++++++++ |
| 1 file changed, 8 insertions(+) |
| |
| diff --git a/gcc/config/i386/xmmintrin.h b/gcc/config/i386/xmmintrin.h |
| index 9cd3fa7..9334f27 100644 |
| --- a/gcc/config/i386/xmmintrin.h |
| +++ b/gcc/config/i386/xmmintrin.h |
| @@ -64,6 +64,10 @@ _mm_prefetch (const void *__P, enum _mm_hint __I) |
| #define __DISABLE_SSE__ |
| #endif /* __SSE__ */ |
| |
| +#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__)); |
| @@ -1316,6 +1316,10 @@ do { \ |
| (row3) = __builtin_ia32_movhlps (__t3, __t2); \ |
| } while (0) |
| |
| +#ifdef __cplusplus |
| +} |
| +#endif |
| + |
| /* For backward source compatibility. */ |
| # include <emmintrin.h> |
| |
| -- |
| 2.8.1 |
| |