patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Dec 05 20:31:43 2012 +0100 (2012-12-05)
changeset 3134 863723936e24
permissions -rw-r--r--
scripts/xldd: use user's sed and grep

xldd uses sed and grep as detected by ./configure. This works well if is
used on the machine that build the toolchain.

But if the user moves the toolchain to another machine where sed and grep
are not in the same directory (eg. /bin/sed vs. /usr/bin/sed), then xldd
will stop functionning.

Fix that by using ${SED} and ${GREP} if they are set in the environment.

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