public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* cc/gcc: add patch for 4.7.2
@ 2012-11-21 12:41 Richard Braun
  2012-11-21 13:15 ` Florian Fainelli
  2012-11-23 17:33 ` Yann E. MORIN
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Braun @ 2012-11-21 12:41 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: ctng_gcc_4_7_2_mmx.diff --]
[-- Type: text/x-diff, Size: 1375 bytes --]

exporting patch:
# HG changeset patch
# User Richard Braun <rbraun@sceen.net>
# Date 1353500353 -3600
# Node ID c777aafa8c093c723ee317fdd5ca0c35ebe29790
# Parent  e097000b5420234168203460dae6ee13560e565e
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.

diff -r e097000b5420 -r c777aafa8c09 patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch	Wed Nov 21 13:19:13 2012 +0100
@@ -0,0 +1,26 @@
+From fd81a24e5a46badfaca606be0781e097aa3cb2e6 Mon Sep 17 00:00:00 2001
+From: Richard Braun <rbraun@sceen.net>
+Date: Wed, 21 Nov 2012 11:58:16 +0100
+Subject: [PATCH] libitm: fix definition of __m64
+
+---
+ 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
+

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cc/gcc: add patch for 4.7.2
  2012-11-21 12:41 cc/gcc: add patch for 4.7.2 Richard Braun
@ 2012-11-21 13:15 ` Florian Fainelli
  2012-11-21 13:48   ` Richard Braun
  2012-11-23 17:33 ` Yann E. MORIN
  1 sibling, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2012-11-21 13:15 UTC (permalink / raw)
  To: crossgcc; +Cc: Richard Braun

Hello Richard,

On Wednesday 21 November 2012 13:41:34 Richard Braun wrote:
> 
> 
Do you have a link to the PR on GCC's bugzilla if any? It is always useful so
one can know whether this patch should be forward ported to a new version.

Thank you!
--
Florian

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cc/gcc: add patch for 4.7.2
  2012-11-21 13:15 ` Florian Fainelli
@ 2012-11-21 13:48   ` Richard Braun
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Braun @ 2012-11-21 13:48 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: crossgcc

On Wed, Nov 21, 2012 at 02:13:57PM +0100, Florian Fainelli wrote:
> Do you have a link to the PR on GCC's bugzilla if any? It is always useful so
> one can know whether this patch should be forward ported to a new version.

Right, sorry. Here is the link: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52695

Upstream hasn't yet fixed it, but comments in the report in addition to
my experience here indicate the patch is very likely OK.

-- 
Richard Braun

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cc/gcc: add patch for 4.7.2
  2012-11-21 12:41 cc/gcc: add patch for 4.7.2 Richard Braun
  2012-11-21 13:15 ` Florian Fainelli
@ 2012-11-23 17:33 ` Yann E. MORIN
  2012-11-26 10:56   ` [PATCH] " Richard Braun
  1 sibling, 1 reply; 6+ messages in thread
From: Yann E. MORIN @ 2012-11-23 17:33 UTC (permalink / raw)
  To: crossgcc; +Cc: Richard Braun

Richard, All,

On Wednesday 21 November 2012 Richard Braun wrote:
> (nothing)

This patch is missing you Signed-off-by line.
While you are at it, please add the BZ URL in the ptch body.

Also, could you use 'hg send-email' to send your patches, instead of
attaching them, please? It makes it easier to review.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] cc/gcc: add patch for 4.7.2
  2012-11-23 17:33 ` Yann E. MORIN
@ 2012-11-26 10:56   ` Richard Braun
  2012-11-27 18:53     ` Yann E. MORIN
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Braun @ 2012-11-26 10:56 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

[-- Attachment #1: ctng_gcc_4_7_2_mmx.diff --]
[-- Type: text/x-diff, Size: 1475 bytes --]

# HG changeset patch
# User Richard Braun <rbraun@sceen.net>
# Date 1353926641 -3600
# Node ID 6a668157b475752c52b5e1b2ac059b16607575d3
# Parent  bd172b161ff8bbb375119de22bdf1009a8480d0f
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>

diff -r bd172b161ff8 -r 6a668157b475 patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gcc/4.7.2/000-libitm-fix-definition-of-__m64.patch	Mon Nov 26 11:44:01 2012 +0100
@@ -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
+

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

* cc/gcc: add patch for 4.7.2
  2012-11-26 10:56   ` [PATCH] " Richard Braun
@ 2012-11-27 18:53     ` Yann E. MORIN
  0 siblings, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2012-11-27 18:53 UTC (permalink / raw)
  To: Richard Braun; +Cc: crossgcc

Richard, All,

Your patch:
    cc/gcc: add patch for 4.7.2

has been applied as: #be7a7e33bdf0
    http://crosstool-ng.org/hg/crosstool-ng/rev/be7a7e33bdf0

Thank you!

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-27 18:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 12:41 cc/gcc: add patch for 4.7.2 Richard Braun
2012-11-21 13:15 ` Florian Fainelli
2012-11-21 13:48   ` Richard Braun
2012-11-23 17:33 ` Yann E. MORIN
2012-11-26 10:56   ` [PATCH] " Richard Braun
2012-11-27 18:53     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).