summaryrefslogtreecommitdiff
path: root/patches/gcc
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-11-26 10:44:01 (GMT)
committerRichard Braun <rbraun@sceen.net>2012-11-26 10:44:01 (GMT)
commitfdac362da2595bf6cc52ed6f7144b1ec2f5adf1f (patch)
tree3ea0c5591fe0463b44feae4357539213e949d0de /patches/gcc
parente9920217e875a18b0207d6a3e5f4df8a6bae58a9 (diff)
cc/gcc: add patch for 4.7.2
This patch fixes compilation of gcc when C++ is enabled and MMX is available, but not SSE/SSE2/AVX. Signed-off-by: Richard Braun <rbraun@sceen.net> Message-Id: <20121126105642.GA12098@mail.sceen.net> Patchwork-Id: 201648
Diffstat (limited to 'patches/gcc')
-rw-r--r--patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch b/patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch
new file mode 100644
index 0000000..ade14a7
--- /dev/null
+++ b/patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch
@@ -0,0 +1,27 @@
+From 3d27d47fbebdb1be3d35e398a7c042a930f64aa6 Mon Sep 17 00:00:00 2001
+From: Richard Braun <rbraun@sceen.net>
+Date: Mon, 26 Nov 2012 11:36:17 +0100
+Subject: [PATCH] libitm: fix definition of __m64
+
+See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52695 for details.
+---
+ libitm/config/x86/target.h | 3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/libitm/config/x86/target.h b/libitm/config/x86/target.h
+index 5c7e6fb..6254d8a 100644
+--- a/libitm/config/x86/target.h
++++ b/libitm/config/x86/target.h
+@@ -73,6 +73,9 @@ cpu_relax (void)
+ /* ??? It's broken for C++. */
+ #include <x86intrin.h>
+ #else
++# ifdef __MMX__
++# include <mmintrin.h>
++# endif
+ # ifdef __SSE2__
+ # include <emmintrin.h>
+ # elif defined(__SSE__)
+--
+1.7.2.5
+