diff options
Diffstat (limited to 'recipes-devtools/mingw-w64/mingw-w64-headers/0001-intrin-impl.h-do-not-define-_xgetbv-for-GCC-8.patch')
-rw-r--r-- | recipes-devtools/mingw-w64/mingw-w64-headers/0001-intrin-impl.h-do-not-define-_xgetbv-for-GCC-8.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/recipes-devtools/mingw-w64/mingw-w64-headers/0001-intrin-impl.h-do-not-define-_xgetbv-for-GCC-8.patch b/recipes-devtools/mingw-w64/mingw-w64-headers/0001-intrin-impl.h-do-not-define-_xgetbv-for-GCC-8.patch deleted file mode 100644 index 366afdc..0000000 --- a/recipes-devtools/mingw-w64/mingw-w64-headers/0001-intrin-impl.h-do-not-define-_xgetbv-for-GCC-8.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From 63d69029386701955e8fa10ac14be8d2316faf6f Mon Sep 17 00:00:00 2001 | ||
5 | From: Mateusz <mateuszb@poczta.onet.pl> | ||
6 | Date: Mon, 22 Jan 2018 20:58:48 +0100 | ||
7 | Subject: [PATCH] intrin-impl.h: do not define _xgetbv for GCC 8 | ||
8 | MIME-Version: 1.0 | ||
9 | Content-Type: text/plain; charset=UTF-8 | ||
10 | Content-Transfer-Encoding: 8bit | ||
11 | |||
12 | GCC 8 from r248028 has defined function _xgetbv and we should | ||
13 | avoid double definition of this function. | ||
14 | |||
15 | Signed-off-by: Mateusz Brzostek <mateuszb@poczta.onet.pl> | ||
16 | Signed-off-by: Martin Storsjö <martin@martin.st> | ||
17 | --- | ||
18 | mingw-w64-headers/include/psdk_inc/intrin-impl.h | 2 ++ | ||
19 | 1 file changed, 2 insertions(+) | ||
20 | |||
21 | diff --git a/mingw-w64-headers/include/psdk_inc/intrin-impl.h b/mingw-w64-headers/include/psdk_inc/intrin-impl.h | ||
22 | index 7da3238b..4990b0ae 100644 | ||
23 | --- a/mingw-w64-headers/include/psdk_inc/intrin-impl.h | ||
24 | +++ b/mingw-w64-headers/include/psdk_inc/intrin-impl.h | ||
25 | @@ -1405,6 +1405,7 @@ __buildmov(__movsd, unsigned __LONG32, "d") | ||
26 | #define __INTRINSIC_DEFINED___movsd | ||
27 | #endif /* __INTRINSIC_PROLOG */ | ||
28 | |||
29 | +#if !defined(__GNUC__) || __GNUC__ < 8 /* GCC 8 has already defined _xgetbv */ | ||
30 | /* NOTE: This should be in immintrin.h */ | ||
31 | #if __INTRINSIC_PROLOG(_xgetbv) | ||
32 | unsigned __int64 _xgetbv(unsigned int); | ||
33 | @@ -1426,6 +1427,7 @@ unsigned __int64 _xgetbv(unsigned int index) | ||
34 | } | ||
35 | #define __INTRINSIC_DEFINED__xgetbv | ||
36 | #endif /* __INTRINSIC_PROLOG */ | ||
37 | +#endif /* __GNUC__ < 8 */ | ||
38 | |||
39 | #endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_) */ | ||
40 | |||
41 | -- | ||
42 | 2.11.0 | ||
43 | |||