aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/49_all_gcc-4.7-x86-libitm-pr52695.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/49_all_gcc-4.7-x86-libitm-pr52695.patch')
-rw-r--r--main/gcc/49_all_gcc-4.7-x86-libitm-pr52695.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/gcc/49_all_gcc-4.7-x86-libitm-pr52695.patch b/main/gcc/49_all_gcc-4.7-x86-libitm-pr52695.patch
new file mode 100644
index 0000000000..e1eb2e6ab1
--- /dev/null
+++ b/main/gcc/49_all_gcc-4.7-x86-libitm-pr52695.patch
@@ -0,0 +1,24 @@
+http://gcc.gnu.org/PR52695
+https://bugs.gentoo.org/421305
+
+fix building on x86 systems
+
+--- a/libitm/config/x86/target.h
++++ b/libitm/config/x86/target.h
+@@ -69,16 +69,4 @@
+ } // namespace GTM
+
+ // We'll be using some of the cpu builtins, and their associated types.
+-#ifndef __cplusplus
+-/* ??? It's broken for C++. */
+ #include <x86intrin.h>
+-#else
+-# ifdef __SSE2__
+-# include <emmintrin.h>
+-# elif defined(__SSE__)
+-# include <xmmintrin.h>
+-# endif
+-# ifdef __AVX__
+-# include <immintrin.h>
+-# endif
+-#endif