patches/gcc/4.7.3/000-libitm-fix-definition-of-__m64.patch
author Cody P Schafer <dev@codyps.com>
Mon May 12 00:02:13 2014 +0200 (2014-05-12)
changeset 3322 eb13867a034c
permissions -rw-r--r--
arch/powerpc: add powerpc64le support

Technically, I don't forbid powerpcle support either, but I'm not sure that
there is any library/compiler support for that at the moment (though the hw
technically makes it possible).

powerpc64le needs glibc 2.19 and gcc 4.9. I haven't looked into the support
tools, but at least gdb 7.5 is too old (7.7.1 definitely has support).

Also make powerpc64 non-experimental. It's practically old at this point.

Signed-off-by: Cody P Schafer <dev@codyps.com>
[yann.morin.1998@free.fr: use ${target_endian_le} and ${target_bits_64}]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <64bfbbced9dd8f62e0d6.1399801945@gun>
Patchwork-Id: 347775
yann@3210
     1
From 3d27d47fbebdb1be3d35e398a7c042a930f64aa6 Mon Sep 17 00:00:00 2001
yann@3210
     2
From: Richard Braun <rbraun@sceen.net>
yann@3210
     3
Date: Mon, 26 Nov 2012 11:36:17 +0100
yann@3210
     4
Subject: [PATCH] libitm: fix definition of __m64
yann@3210
     5
yann@3210
     6
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52695 for details.
yann@3210
     7
---
yann@3210
     8
 libitm/config/x86/target.h |    3 +++
yann@3210
     9
 1 files changed, 3 insertions(+), 0 deletions(-)
yann@3210
    10
yann@3210
    11
diff --git a/libitm/config/x86/target.h b/libitm/config/x86/target.h
yann@3210
    12
index 5c7e6fb..6254d8a 100644
yann@3210
    13
--- a/libitm/config/x86/target.h
yann@3210
    14
+++ b/libitm/config/x86/target.h
yann@3210
    15
@@ -73,6 +73,9 @@ cpu_relax (void)
yann@3210
    16
 /* ??? It's broken for C++. */
yann@3210
    17
 #include <x86intrin.h>
yann@3210
    18
 #else
yann@3210
    19
+# ifdef __MMX__
yann@3210
    20
+#  include <mmintrin.h>
yann@3210
    21
+# endif
yann@3210
    22
 # ifdef __SSE2__
yann@3210
    23
 #  include <emmintrin.h>
yann@3210
    24
 # elif defined(__SSE__)
yann@3210
    25
-- 
yann@3210
    26
1.7.2.5
yann@3210
    27